Hi guys,
I have literally started learning Perl a few days ago (using the Learning Perl O'reilly 4th edition book) and have hit a stumbling block!
I am currently attempting to get the below code to read the text from a text file and print! However I get the following error message: can't open test1.txt No such file or directory.
I have created all my scripts under: C:\Scripts\ and have also placed the test1.txt file there too!------------------ #! /usr/bin/perl -w use strict; @ARGV = ("test1.txt"); while (<>) { chomp; print "It was $_ that I saw in some stooge-like file!\n"; } ------------------------
Thanks.
In reply to Noob Question by nick1984
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |