not want
a or B, only aB's. I cannot remove inner parentheses as it
would be /(a|Ab|B)/ which is not what I want.
Is my problem clear?
From: Timothy Johnson [EMAIL PROTECTED]
To: 'Rum Pel' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: grouping regex match return values
Date: Wed, 18 Sep
the request method of LWP::UserAgent returns a HTTP::Response object. Even
though this isn't explicitly documented in the LWP::UserAgent docs
(accessible via perldoc LWP::UserAgent), it seems like a reasonable first
guess.
A function definition in Perl doesnt require you to specify
the
Yes. You can even find out what the caller is expecting. Well, to an
extent anyway.
peldoc -f wantarray
Wow! thats new and interesting. I looked at a couple of examples
on it. It seems to be true if a return value is expected by the
caller context. Is this that? or it is true only when a
I installed MailTools, and want to use
Mail::Util-read_mbox($file)
THe documentation says:
Read $file, a binmail mailbox file, and return a list of references. Each
reference is a reference to an array containg one message.
But nothing is said about the type of message, I cannot even guess
I want to pick dates from a file, I did it the following way:
-
$day = ([12]?[0-9]|30|31);
$weekday = (Mon|Tue|Wed|Thu|Fri|Sat|Sun);
$month = ([1-9]|10|11|12|Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec);
$year = (1999|2000|2001|2002);
$query = $month\/$day\/$year;
@q = Today is Tue
hello
perl -e print qq(@INC)
prints the library paths.
Can somebody tell me what does qq do here?
Also, what does qw do in the following statement?
use HTTP::Request::Common qw(GET POST);
--rp
_
Send and receive Hotmail on your
use HTTP::Request::Common;
$ua = LWP::UserAgent-new;
my $res = $ua-request(GET 'http://www.sn.no/');
if ($res-is_success) { ...
Now, what is the type of 'res' variable?
In the html documentation that comes with perl,
I can see a list of packages, modules, the methods within
but they dont
I have written a perl program which I want to give to my
friends to try out. But the program uses a few libraries
that are normally not installed by default. So how do I
ship my program? What is the general way of doing this?
In java, when I give my program I also give the libraries
ie., the