aridzonan has asked for the wisdom of the Perl Monks concerning the following question:
#The above snippet runs in Padre 0.42. However, it crashes with the above commented syntax error from the command line in Ubuntu 9.10 / Kernel 2.6.31-169-generic.. And I believe I'm up to date on all my patches. Any suggestions??#/usr/bin/perl # Cosmo Learning File Open operation PERL(II) class lecture. $fname = "/home/jfquaid/bin/PERL/new.txt"; open XYZ, $fname, or die "Error open: $!"; while (<XYZ>) { print "Line number $. ls: $_"; } # Does not farction "line 7: syntax error near unexpected token from s +hell!!`)'
Regards, JQ
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Syntax Problem / Padre vs Command Line
by ww (Archbishop) on Dec 25, 2009 at 21:15 UTC | |
by ww (Archbishop) on Dec 28, 2009 at 01:24 UTC | |
|
Re: Syntax Problem / Padre vs Command Line
by Anonymous Monk on Dec 25, 2009 at 19:41 UTC |