Dear perl masters
My problem is the following: I'm trying to write a script in order to extract the five first characters from the second line of a ".txt" file.
I wrote this:
open (file1, "./file1.txt"); @lines1= <file1>; $fivefirstfile1= substr($lines1[2], 0, 5); print "Five first characters are: $fivefprot1\n";
But it doesn't work... Could you please help me ?
In reply to script not working by jeffle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |