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)
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++;
}
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
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
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
> 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\/.*?|)
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
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
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
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++.
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
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
12 matches
Mail list logo