At 02:22 PM 11/26/2004, James W. Thompson, II wrote:
>I know this is off-topic but I have 5 Gmail invites I want rid of...if
>anyone really has a problem with me giving these away here just let me
>know and I won't in the future...
If you want to give away Gmail Invites, why not try the Gmail Inv
At 01:22 PM 7/28/2003, you wrote:
>> Hi there,
>>
>> What perl function can i use to extract a
>> sub-string from a string.
>>
>>
>
>$string = 'myfile.txt';
>
>$string =~ m/^(\w+)\.txt$/;
>
>print $1;
When I saw this question I immediately thought
my $string = "myfile.txt";
my $subst
At 11:38 AM 7/21/2003, Andrew Thomas wrote:
>Of course I apologize - I had meant to include that. Here it is, the actual
>script is quite long so I've pared it down some to try and isolate the problem. This
>is the whole script now and it is still having the same problem.
I'm the most newbi
At 06:51 PM 7/28/2002, you wrote:
>Tara,
> Try this:
> foreach $elemenet(@fooarray){
> if($element eq $foo){
> things_happen;
> }
> }
> - John
Thanks John a
Gentle Perl people,
Sorry to bother you with this, but I can't find the answer in my Pile of
Perl Books.
I probably don't know enough to ask the question correctly.
I know you can compare two variables:
if ($foo eq $otherfoo) {things happen}
What I want to know is if you can do something that
Is there a way I can pull multiple items out of a page scrape?
I know I can do this:
my $data = get("http://foo";) or die "ERROR: $!";
$data =~ / this is a (.*) page/i;
my $scrape1 = $1;
What I want to do is pull five bits of information off the page.
I'm reasonably confident this would work:
the problem was with the form; I figured it out. Thanks.
Tara
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'm using a script that's getting parameters passed to it via a form.
Here's the
relevant part of the form:
0 (Today's additions)
1 (Yesterday)
Last Seven Days
Last 30 Days
In the script that's referenced like so:
my $datemod = param('datemod');
At the end of the script I want to open one of
I have a program that processes a file of lines. It takes one line at a
time and Does Things.
Some of the lines are plain:
three mice
While some of the lines have semicolons:
three;mice
For the semicolon'd lines, I need to remove the semicolons and
surround them with %22, like so:
%22three
Hi, it's me again.
I am reading lines from a text file in directory A. From those lines I want
to generate
files which I want to copy to directory B. Directory B is generated based
on a variable.
The structure is so:
directorya/directoryb/
So I need to do the following things:
1) Make Direct
At 02:05 AM 4/26/2002, Jeff 'japhy' Pinyan wrote:
> >I need to back up two days from localtime and I can't figure out how to do
> >it. Currently I'm doing this just so I can work out the rest of the program:
> >
> >($day, $month, $year) = (localtime) [3,4,5]; #getting your local time
>
>The generi
Howdy,
I need to back up two days from localtime and I can't figure out how to do
it. Currently I'm doing this just so I can work out the rest of the program:
($day, $month, $year) = (localtime) [3,4,5]; #getting your local time
information
$realday = $day-2;
if ($realday<1) {$realday = 30} els
Greetings,
I've been messing with the Google API today, and while I think I understand
what's going on,
I'm having a problem understanding how to parse what Google spits out.
For example (and you'll need a Google key for this):
use SOAP::Lite;
my $key='';
my $query="foo
Is there SOAP::Lite documentation for Perl novices? Everything I've found
so far seems
to be written for more advanced users.
I thought "SOAP::Lite Tutorial for newbies" might do the trick but the site
that hosted it is
apparently not available and there's no Google cache.
Thanks,
Tara
--
At 07:11 PM 11/9/2001, you wrote:
>My first script in perl was:
My first perl script was about 2 months ago. All it does is ask for a text
file with a list of
URLs, then grabs each URL from the Web and saves it to its own file in a
folder. I use it
to read weblogs that don't syndicate their he
Gentle Listmates,
I subscribe to the "pills in jelly" theory of learning -- focus on something
really interesting and then get useful information out of the things you have
to do to make the thing you find really interesting work.
With that in mind I've been learning Perl based on working with L
16 matches
Mail list logo