Jeff 'japhy' Pinyan wrote:
> Second, you probably want to glob():
>
> while (glob "xyz_*") {
> open FILE, $_ or die "can't read "$_: $!";
> # do stuff with FILE
> close FILE;
> }
>
> Or use the magic of @ARGV:
>
> {
> local @ARGV = glob "xyz_*";
> while (<>) {
> #
On Jul 11, Håkan Edman said:
>So basically my problem is how do you open a file with a 'wildcard' like
>in my example?
>ex.
>open (INPUT, "xyz_\*") || die print "Couldn't open file...!\n";
First, * does not need to be backslashed in a string -- no need to be so
paranoid about "special" c