P is for Practical | |
PerlMonks |
cpan install($_) doesn't work in loop, but normal lexical var doesby tphyahoo (Vicar) |
on Aug 27, 2006 at 16:42 UTC ( [id://569882]=perlquestion: print w/replies, xml ) | Need Help?? |
tphyahoo has asked for the wisdom of the Perl Monks concerning the following question: The error I get with the $_ variant happens at the write makefile step:
I don't understand why my $var works, but $_ from the loop doesn't. I thought $_ was automatically lexically scoped, and could be relied on to do the same thing as specifying my $var before the for list. What gives? By the way, to test this, I had my perl root directory tarred up. Before running the script I reverted my perl root directory by Then I ran perl -e 'use Catalyst::Plugin::Authentication' to confirm that this produced an error because of the missing module, and then I would run the script to see if things installed ok or not. Also, there's nothing special about Catalyst::Plugin::Authentication. This error seems to be produced regardless of what module I try to install. Blessings to the monastery.
Back to
Seekers of Perl Wisdom
|
|