> It could be as simple as:
>
> In a file called MyConfig.pm:
>
> -----------------------------
> use strict;
> use warnings;
>
> package MyConfig;
>
> use base "Config::Scoped";
>
> sub permissions_validate { return 1; }
> ------------------------------

I was just looking at going down this route so nice to know I wasn't being 
too silly...

>
> However, I think the suggestion below would probably be better.
>
>>
>> Another workaround I guess is to change the file permissions in the
>> code before I use it which somehow seems a bit messy.

What I actually was considering there was to do a chmod on the file which I 
wasn't so keen on...

>
> What about in the constructor?
>
> my $parser = Config::Scoped->new(... warnings => {permissions =>
> 'off'});
>
> HTH
>

...but this is exactly what I was after! Lack of examples combined with my 
lack of familiarity of OO in Perl meant I was having difficulty 
understanding the docs so this has been very valuable learning.

Thanks,
Mark 

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to