shadowfox has asked for the wisdom of the Perl Monks concerning the following question:
So why doesn't this?@FILES = <//server/path/WantedFiles*.*> ; foreach $file(@FILES){ #do stuff... }
$WantedFiles = "//server/path/WantedFiles*.*"; @FILES = <$WantedFiles> ; foreach $file(@FILES){ #do stuff... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl globbing syntax with $variables?
by dave_the_m (Monsignor) on Aug 01, 2012 at 20:23 UTC | |
|
Re: Perl globbing syntax with $variables?
by toolic (Bishop) on Aug 01, 2012 at 20:23 UTC | |
|
Re: Perl globbing syntax with $variables?
by abualiga (Scribe) on Aug 01, 2012 at 20:41 UTC |