Whitey has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use LWP::Simple; my $data = get ("http://www.bloomberg.com/energy/index.html"); my ($wanted) = $data =~ /<!-+PETROLEUM-+>\s*(.*?)\s*<!-+POWER-+>/s; $wanted=~ s/^[^\n]*\n//s; # just remove the first line open (FH,'>../data/file.txt') || die $!; print FH $wanted; close FH;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with Cron job
by bjturner (Initiate) on Jul 03, 2001 at 22:11 UTC | |
|
Re: Problem with Cron job
by malloc (Pilgrim) on Jul 03, 2001 at 23:34 UTC | |
|
Re: Problem with Cron job
by Anonymous Monk on Jul 03, 2001 at 22:51 UTC | |
|
Re: Problem with Cron job
by dragonchild (Archbishop) on Jul 03, 2001 at 22:00 UTC |