I think the problem is in '*.*'. Perhaps this would work better:
$WantedFiles = '//server/path/WantedFiles'; @files = <$WantedFiles/*>;
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 reply to Re: Perl globbing syntax with $variables?
by abualiga
in thread Perl globbing syntax with $variables?
by shadowfox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |