stu72 has asked for the wisdom of the Perl Monks concerning the following question:
Prints the file, easy enough right? That's what it does on XP. On the HPUX it simply drops back to the prompt nothing displayed. I've done variations on the filename, giving the full path even though the script and log file are in the same directory. Running perl -w only tells me that I'm using an unitialized variable on line 2 A perl -v gives me$filename="auditlog.txt"; open FILE,$filename; while (<FILE>) { print "$_"; }
I think perhaps that there isn't a full install of Perl on the machine. Any ideas? stuThis is perl, version 4.0 $RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $ Patch level: 36 Copyright (c) 1989, 1990, 1991, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 4.0 source +kit.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl 101 Problem
by trammell (Priest) on Jan 24, 2005 at 15:03 UTC | |
|
Re: Perl 101 Problem
by tinita (Parson) on Jan 24, 2005 at 15:03 UTC | |
|
Re: Perl 101 Problem
by davis (Vicar) on Jan 24, 2005 at 15:15 UTC | |
|
Re: Perl 101 Problem
by holli (Abbot) on Jan 24, 2005 at 15:05 UTC | |
|
Re: Perl 101 Problem
by dimar (Curate) on Jan 24, 2005 at 17:34 UTC | |
|
Re: Perl 101 Problem
by punkish (Priest) on Jan 25, 2005 at 01:27 UTC | |
|
Re: Perl 101 Problem
by gmpassos (Priest) on Jan 24, 2005 at 22:44 UTC |