in reply to Adding Files in a directory to an array
Yeah, you can't do that, because Perl gets confused between the globbing operator (<*.txt>) and the file input operator (<FILE>).
The way to do it it to use the glob function instead.
--$searchcontacts = "cd32/*.cd"; @allcontacts = glob($searchcontacts);
"The first rule of Perl club is you don't talk about Perl club."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:{2} Adding Files in a directory to an array
by jeroenes (Priest) on Oct 09, 2001 at 15:10 UTC |