![]() |
|
There's more than one way to do things | |
PerlMonks |
Re^2: require mysteryby Pstack (Scribe) |
on Sep 06, 2007 at 07:29 UTC ( #637337=note: print w/replies, xml ) | Need Help?? |
I followed your hunch to look deeper, as it seemed line 2 should have failed for me, even if there had been a prior use. my $pathtool = "File::Path";
eval "require $pathtool"; # OK
Clearly $pathtool wont work in the FIRST block eval where the bareword will, but will work in the SECOND block eval. A subtle trap for young players! But I am relieved. Thanks for your help. Pstack
In Section
Seekers of Perl Wisdom
|
|