polka4ever
Technical User
Hello, I would like to use the open() function to open several files. I tried doing it this way:
$file = 'test*.file'; # Name the file
open(INFO, $file) or die "Can't open input file: $!"; # Open the file
But this isn't working.
The files are named:
test.file, test1.file, test2.file and test3.file.
The error message i get is can't open input file. No such file or directory.
What am i doing wrong here?
Thank you & hope you all had a good weekend.
~Polka
Detroit, MI, USA
$file = 'test*.file'; # Name the file
open(INFO, $file) or die "Can't open input file: $!"; # Open the file
But this isn't working.
The files are named:
test.file, test1.file, test2.file and test3.file.
The error message i get is can't open input file. No such file or directory.
What am i doing wrong here?
Thank you & hope you all had a good weekend.
~Polka
Detroit, MI, USA