I run script "hello world" ago and it run sucessfully but today i am trying to understand filehandle and streams, i related it to my question because my book has an example which i tried to run by creating the file named not.txt and wrote the following code in it:
open (FILEHANDLE, ">not.txt") or die (Cannot open not.txt"); print FILEHANDLE "hello!"; close (FILEHANDLE);
and then i go to perl(command line) and defined path where file "not.txt" is placed and wrote "perl not.txt" and hit enter then it show errors. i think it should print hello! as in the book.
In reply to Re^2: how to create a perl program using filehandle and streams ?
by Monk_perl
in thread how to create a perl program using filehandle and streams ?
by Monk_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |