develooper Front page | perl.beginners | Postings from March 2002

Different Results on Different Boxes?

Thread Next
From:
Michael Norris
Date:
March 21, 2002 07:37
Subject:
Different Results on Different Boxes?
Message ID:
20020321153751.65FC436F9@sitemail.everyone.net
Hello,

In my early (very early) stages of learning perl I've run into a conflict.  I have access to two linux machines that I practice on (I do not have admin rights).  The following is a simple script from "Learning Perl." Problem is, it runs on one linux box, but not the other.  

Here is the code:

#!/usr/bin/perl -w
use strict;

print "Enter password files: \n";
chomp(my @file = <STDIN>);
my @reverselist = reverse @file;
print "@reverselist\n";


On the box that it doesn't run on, I get this error:

syntax error at /home/mnorris/perlscripts/lp7.3 line 8, at EOF
Execution of /home/mnorris/perlscripts/lp7.3 aborted due to compilation errors.


~


_____________________________________________________________
Surf on! Get a free and secure email account and more @ surfOrbit.com
http://www.surfOrbit.com

_____________________________________________________________
Run a small business? Then you need professional email like you@yourbiz.com from Everyone.net  http://www.everyone.net?tag

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About