go ahead... be a heretic | |
PerlMonks |
Re: Glob strange bahavorby Sidhekin (Priest) |
on Aug 21, 2006 at 12:57 UTC ( [id://568528]=note: print w/replies, xml ) | Need Help?? |
if(defined (my $filename=(glob("$path*$_*.pkl")))) Based on those extra parentheses, it looks like you're trying to call glob in list context (which would make more sense, too). But parentheses on the right hand side of assignment do not a list assignment make. Put them on the left hand side instead. Also, an empty list assignment in scalar context is actually defined (zero, to be precise), so you likely want this:
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|