-
December 3rd, 2006, 07:32 PM
#1
Junior Member
Perl open function
've just started doin Perl on my own...
I have a doubt.
the following program named openpage.pl is not working and shows the error below
open (page,"<text.txt");
while<page>{print;}
D:\SCRIPTS>perl openpage.pl
syntax error at openpage.pl line 2, near "while<page>"
Execution of openpage.pl aborted due to compilation errors.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|