$file_out='my_file';
system("/bin/grep -i errors $file_out");
The above script will give you all the occurrences of
the word you wanted. I have run it on SunW,
Ultra-2,5.7 sparc.
--- Nikola Janceski <[EMAIL PROTECTED]>
wrote: > Has anyone run into something like this?
>
> Specs: solaris 5.6 s
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
read the "Regexp Quote-Like Operators" section of the perlop manpage
> -Original Message-
> From: Rum Pel [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 2:48 PM
> To: [EMAIL PROTECTED]
> Subject: qq/qw
>
>
> hello
>
> perl -e "print qq(@INC)"
> prints the library paths
Ic...sorry about that, It just didnt work on my XP box, but as I said great
on Solaris.
- Original Message -
From: "Nikola Janceski" <[EMAIL PROTECTED]>
To: "'Mark Goland'" <[EMAIL PROTECTED]>
Sent: Monday, September 16, 2002 1:38 PM
Subject: RE: dealing with Prime Numbers
> uh.. it's u
From perldoc perlop:
qq/STRING/
""STRING""
A double-quoted, interpolated string.
$_ .= qq
(*** The previous line contains the naughty word
"$1".\n)
if /\b(tcl|java|python)\b/i; # :-)
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
$ua->request returns a HTTP::Response object.
$res is probably better written as $response.
the 'if ($res->is_success)' line is testing whether the $request succeeded
or threw some HTTP error.
hth
toby
> -Original Message-
> From: Rum Pel [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, Se
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. You can also find the type of an object by calling ref on
it:
use L
I'm trying to create an answering machine for linux,
How can I have perl do something when the modem is getting a ring??
I need to start tinkering with the modem to figure it out.
The modem is on /dev/ttyS4 Whatever that means, I never got that???
Ok, so the basics please, how do I play a mess
Actually, I think I can do it with
http://search.cpan.org/author/YENYA/Modem-Vgetty-0.03/Vgetty.pm
Vgetty, what do you think?
Looks like it can read the pound key so it should be able to do the 4 digit
#!
Looks promising,
TOny
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Ok, so this Vgetty module should do most of the work,
but does anyone know of a way to connect two modems together,
if I use modem 1 to check for a pin number followed by a #, then in order
to ring the phones I'll have to use a second modem, no problem, I've got
tons
of modems, but how do I conn
Dear All,
I have a cgi-script that is supposed to delete some files in a directory. I
am using File::Path::rmtree to do this. The files are chmoded 755.
Whenever I run this script from the command line, it does exactly as it is
supposed to do.
Whenever I run this script from within a browser,
On Mon, 16 Sep 2002, Anette Seiler wrote:
> Dear All,
>
> I have a cgi-script that is supposed to delete some files in a directory. I
> am using File::Path::rmtree to do this. The files are chmoded 755.
>
> Whenever I run this script from the command line, it does exactly as it is
> supposed
13 matches
Mail list logo