RobTuck has asked for the wisdom of the Perl Monks concerning the following question:
$sectionsurl = "http://www.url.com/data/faqdata/sections.toc"; $headerurl = "http://www.url.com/data/settings/header.txt"; $settingsurl = "http://www.url.com/data/settings/settings.txt"; # print out the settings area $settingstext = get($settingsurl); @settings = split(/\n/,$settingstext); foreach $setting (@settings) { print "[".$setting."]<br>"; } # print out the header text $headertext = get($headerurl); $headertext =~ s/\n/\<br\>/ig; print $headertext; print "<br><br><hr><br><br>"; # print out the faq index $allsections = get($sectionsurl); @sections = split(/\n/,$allsections); foreach $section (@sections) { print "[".$section."]<br>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Randomly working script using LWP::Simple
by tcf22 (Priest) on Nov 28, 2003 at 00:53 UTC | |
|
Re: Randomly working script using LWP::Simple
by Roger (Parson) on Nov 28, 2003 at 01:01 UTC | |
by diotalevi (Canon) on Nov 28, 2003 at 16:31 UTC | |
|
Re: Randomly working script using LWP::Simple
by RobTuck (Initiate) on Nov 28, 2003 at 01:21 UTC |