Perl Monk, Perl Meditation | |
PerlMonks |
Re: Perl globbing syntax with $variables?by abualiga (Scribe) |
on Aug 01, 2012 at 20:41 UTC ( [id://984891]=note: print w/replies, xml ) | Need Help?? |
I think the problem is in '*.*'. Perhaps this would work better:
If you also wanted the dot files from that directory, then: @files = <$WantedFiles/* $WantedFiles/.*>;Perl expands variables to current values before globbing them (Learning Perl).
In Section
Seekers of Perl Wisdom
|
|