Help on script

2001-08-20 Thread Sunthari
Dear List, I am new to programming and currently looking into Perl. I am going thru the available Perl tutorial in the net but there are less examples especially on how to use modules. I have wrote this simple script of match word and count it for a text file (well, did some cut-n-paste here and

Re: Help on script

2001-08-21 Thread Roger C Haslock
of print). - Roger - - Original Message - From: "Sunthari" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 21, 2001 5:50 AM Subject: Help on script > Dear List, > > I am new to programming and currently looking into > Perl. I am going

Re: Help on script

2001-08-21 Thread register
ly recommend 'Algorithms + Data > Structures = Programs' by Niclaus Wirth (out of print). > > - Roger - > > > - Original Message - > From: "Sunthari" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 21, 2001 5:50 AM

Re: Help on script

2001-08-21 Thread Sunthari
ramming should NOT buy > this book ... > > If you want to learn programming, I can only > recommend 'Algorithms + Data > Structures = Programs' by Niclaus Wirth (out of > print). > > - Roger - > > > - Original Message - > From: "Suntha

RE: Help on script

2001-08-22 Thread Stampe, Lars
I have found this useful: http://developer.grup.com.tr/language/perl/perl5 atb Lars -Original Message- From: Sunthari [mailto:[EMAIL PROTECTED]] Sent: 21 August 2001 16:29 To: Roger C Haslock; [EMAIL PROTECTED] Subject: Re: Help on script Dear List, Perl is not my first programming

Re: Help on script

2001-08-22 Thread Roger C Haslock
I have cut your script down (see below) 1) You don't need ARGV (and were using it wrongly); use $filename = 'C:\Perl\bin\folder\princess.txt'; instead. 2) You do need to open and cloae the file being read (INPUT, below) 3) You need double quotes around strings containing variables; single quote

Re: Help on script

2001-08-22 Thread Curtis Poe
--- Roger C Haslock <[EMAIL PROTECTED]> wrote: > I have cut your script down (see below) Some comments: > #!usr/perl/bin > > use CGI; In this program, you're using the function oriented version of CGI.pm. That means you'll need to import the functions. One way: use CGI qw/:standard/;