er, View, Options, File Types. Then find the perl .pl
> > extension and edit the file type, edit the open action, add
> > %1 %*
> > after ...\perl.exe
> > HTH
> > "Josef E. Galea" <[EMAIL PROTECTED]> wrote in message
> > 001c01c1f210$25a8c2e0$1
How can I pass parameters (eg: a file name) to a Perl script
Josef
de, feel free to use it. This means that $contents[0] = line 1
$contents[1] = line 2
$contents[2] = line 3
- Original Message -
From: Ron Powell
To: 'Josef E. Galea'
Sent: Tuesday, April 30, 2002 11:09 PM
Subject: RE: Help Please
Does the project you are working on
Try running the script from a command promt window (Start > Run > cmd.exe)
using
perl .pl
so that if there is an output, you see it. Also try to use
perl -w .pl to locate possible bugs
- Original Message -
From: "Larry" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May
Ok guys, thank you all for your suggestions. I solved the problem. It consisted of a
bug with the text editor that saved the file as test.txt.txt. Rather lame actually.
Thank you all
Josef
d Gray" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "'Josef E. Galea'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 30, 2002 9:23 PM
Subject: RE: Please Help
> > I am a student an I'm new to Perl. For a university
> > assignment I need t
Hi
I am a student an I'm new to Perl. For a university assignment I need to read the
contents of a text file in an array. I am using Windows. The code I am writing is:
$file = "/test.txt";
open (INFO, "$file");
@lines = ;
close(INFO);
Altough this is supposed to work, I am getting a ''readline