#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
In reply to Syntax Problem / Padre vs Command Line by aridzonan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |