Skip Menu |

This queue is for tickets about the all CPAN distribution.

Report information
The Basics
Id: 4320
Status: open
Priority: 0/
Queue: all

People
Owner: Nobody in particular
Requestors: mark [...] twoshortplanks.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: Coderefs in @INC
all doesn't support coderefs in @INC. This means modules written with it are incompatible with tools such as PAR.
[guest - Fri Nov 7 05:14:33 2003]: Show quoted text
> all doesn't support coderefs in @INC. > > This means modules written with it are incompatible with tools such as PAR.
Yes, this is a problem. I've not yet figured out how to get around this, but I have a feeling its going to be a matter of slightly changing my approach. Regards, James.
On Pt. 07 Lis. 2003, 05:35:23, JDUNCAN wrote: Show quoted text
> > all doesn't support coderefs in @INC. > > > > This means modules written with it are incompatible with tools such
> as PAR. > > Yes, this is a problem. I've not yet figured out how to get around > this, but I have a > feeling its going to be a matter of slightly changing my approach. > > Regards, > James.
The all module works with PAR perfectly. You should use "pp -c" option. The example: #!/usr/bin/perl use all 'Sys::'; use Data::Dumper; print Dumper \@INC, \%INC; $ pp -c all_test.pl $ strace -eopen ./a.out 2>&1|grep Sys open("/tmp/par- .pm", O_RDONLY) = 8 open("/tmp/par- me.pm", O_RDONLY) = 8 'Sys/Hostname.pm' => '/tmp/par- me.pm', 'Sys/Syslog.pm' => '/tmp/par- .pm', I think this bugreport should be rejected.
On Thu Oct 16 09:49:22 2008, DEXTER wrote: Show quoted text
> The all module works with PAR perfectly. You should use "pp -c" option. > The example: > > #!/usr/bin/perl > use all 'Sys::'; > use Data::Dumper; > print Dumper \@INC, \%INC; > > $ pp -c all_test.pl > $ strace -eopen ./a.out 2>&1|grep Sys > open("/tmp/par- > .pm", O_RDONLY) = 8 > open("/tmp/par- > me.pm", O_RDONLY) = 8 > 'Sys/Hostname.pm' => '/tmp/par- > me.pm', > 'Sys/Syslog.pm' => '/tmp/par- > .pm', > > I think this bugreport should be rejected.
I don't think so. Maybe it should just be moved to the Module::ScanDeps queue? Because "use all ..." should just also work when doing M::SD static scanning. If you resubmitted this to the M::SD queue, that would be awesome. (Unless you manage to move it there via RT which would be even better.)