LAdProg2005
Programmer
Hello all,
i am trying to read file that has pipe in the end of file name.
fileOne| -> it is a data file
./test fileOne| doesn't work as it doesn't read the |
I tried to escape it with backslash
./test fileOne\| but this doesn't work also
any help will be appreciated
thank you
lad
i am trying to read file that has pipe in the end of file name.
fileOne| -> it is a data file
./test fileOne| doesn't work as it doesn't read the |
I tried to escape it with backslash
./test fileOne\| but this doesn't work also
Code:
$opF = $ARGV[0];
open FILE, "$opF" or die "$!";
while(<FILE>)
{
$line = $_;
print "$line\n";
}
any help will be appreciated
thank you
lad