Re attributes.pm I think it might be best to add attributes.pm by default as an implicitly required module.
You don't necessarily have to 'use threads::shared' anywhere in your script just because you do my $val : shared; so the answer isn't really adding code that relies on 'threads::shared'; My vote would be for adding attributes.pm to the implicitly required list. Regards Mark Roderich Schupp wrote: > On 6/25/07, deadpickle <[EMAIL PROTECTED]> wrote: >> > pp -o GWC.exe -Mattributes GWC.pl >> > >> It worked!! >> >> > If this works, we still need to figure out why attributes.pm wasn't >> detected. >> > Can you post your script? >> >> It is a large script, but sure if no body minds: >> PS the attribute error is on line 11. >> ... >> my $user:shared = 'uas'; > > Thanks, that's a straightforward use of attributes. > > I just checked Module::ScanDeps and it currently has no provision to detect > the use of attributes. AFAICT, it would be non-trivial to add this, > because M::SD would have to look at every "sub ..." and "my ..." statement > which it currently doesn't. > > But Eric Wilhelm <[EMAIL PROTECTED]>'s suggestion > to infer "attributes.pm" whenever we see "use threads::shared" > (because that makes usage of attribute ":shared" highly likely) > is very good. I'll add that to M::SD later in the day. > > Cheers, Roderich