I am a perl beginner,I am working on windows7 usin strawberry perl, I am trying to open a file using
If i had to open some file from say C:\perl_tests\test.txt, what should be the string $fname#opening a file, checking the error code. $fname="/home/isg/report.txt"; open xyz, $fname or die "Error in open:$!"; while(<xyz>){ print "line number $. is : $_"; }
In reply to file basics by harry1705
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |