Re: Interesting one...

2002-05-23 Thread $Bill Luebkert
Evan Morris wrote: > At least, to me. > > My environment does not catch command line arguments. For instance, the > following little test script returns nothing when run on my machine, > although it behaves as expected when run on any other machine: > > $c = @ARGV; > $cnt = 0; > while($cnt<$c)

Interesting one...

2002-05-23 Thread Evan Morris
At least, to me. My environment does not catch command line arguments. For instance, the following little test script returns nothing when run on my machine, although it behaves as expected when run on any other machine: $c = @ARGV; $cnt = 0; while($cnt<$c) { print "$ARGV[$cnt]\n"; $cnt++; }

Re: Optional patternmatching?

2002-05-23 Thread $Bill Luebkert
Mike Blomgren wrote: > Hi, > > I'm trying to write a patternmatching regexp, with two optional > parenthesis, but I can't figure out how to have an 'optional' match. > I.e. I want a match, regardless if the last two fields are available or > not. But if thy are available, I want to use them... I

RE: Optional patternmatching?

2002-05-23 Thread Mike Blomgren
Thanks a million! It works great, just as I wanted! ~Mike > -Original Message- > From: Aaron Trevena [mailto:[EMAIL PROTECTED]] > Sent: den 23 maj 2002 12:20 > To: [EMAIL PROTECTED] > Subject: RE: Optional patternmatching? > > > > if ( m/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) # I

Re: Writing Data In a File

2002-05-23 Thread Philip Morley
open (DATAFILE,">/tmp/period.txt"); @newline=join(';',@value); print ("@newline"); close DATAFILE; This will only print to STDOUT. What you need to do is print to the filehandle, DATAFILE. Try this instead: open (DATAFILE,">/tmp/period.txt"); @newline=join(';',@value); print (DATAFILE "@newli

RE: Optional patternmatching?

2002-05-23 Thread Aaron Trevena
> if ( m/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) # IP Address > \x20(.+?)# User > \x20(.+?)# unused > \x20(\[.+\]) # Date > \x20\"(.*?\n*?.*?) # Request > (HTTP\/.*?|)

Re: Extending ActivePerl's environment with C/C++ functions

2002-05-23 Thread Robert Thorpe
On 23 May 2002, at 0:53, Jan Dubois wrote: > On Thu, 23 May 2002 08:51:19 +0100, "Robert Thorpe" > <[EMAIL PROTECTED]> wrote: > > >> Yes, perlxs is what you are looking for if you want to write Perl > >> extension modules in C/C++. Prepare for a BIG learning curve. > > > >It not what you're loo

Writing Data In a File

2002-05-23 Thread vijay
Hi All, I am new in perl world. I want to collect some data from web page and store it in file. I have written following html and cgi but its creating only blank file. HTML file : Find File of specific day Please enter date [ DD/MM/YY format ]: Please enter Time [ H

Optional patternmatching?

2002-05-23 Thread Mike Blomgren
Hi, I'm trying to write a patternmatching regexp, with two optional parenthesis, but I can't figure out how to have an 'optional' match. I.e. I want a match, regardless if the last two fields are available or not. But if thy are available, I want to use them... I'm confident there is a simple sol

Re: Extending ActivePerl's environment with C/C++ functions

2002-05-23 Thread Jan Dubois
On Thu, 23 May 2002 08:51:19 +0100, "Robert Thorpe" <[EMAIL PROTECTED]> wrote: >> Yes, perlxs is what you are looking for if you want to write Perl >> extension modules in C/C++. Prepare for a BIG learning curve. > >It not what you're looking for if you want to write perl extensions to >C/C++.

Re: Extending ActivePerl's environment with C/C++ functions

2002-05-23 Thread Robert Thorpe
On 22 May 2002, at 15:53, Jan Dubois wrote: > On Wed, 22 May 2002 17:35:01 +0100, "Robert Thorpe" > <[EMAIL PROTECTED]> wrote: > > >On 22 May 2002, at 11:37, Richard Z. Ward wrote: > > > >> I've read about ActivePerl's PerlEz but this interface does not appear to > >> have a way of registering f

Re: how to authenticate thousands of static html pages

2002-05-23 Thread YONG JI
Thanks for all your kind responses. Actually the thing is we have adopted session authentication in our website. After registered users login successfully, every link they click is a Perl CGI link like something.x?field1=&field2= and every CGI script got an authentication routine at the be