There's more than one way to do things | |
PerlMonks |
Re: Re(2): RFC fetcherby merlyn (Sage) |
on Apr 04, 2001 at 21:45 UTC ( [id://69765]=note: print w/replies, xml ) | Need Help?? |
I'd use LWP::Simple's mirror($url, $localfile) in place of the if/else test. That way, if they update it, you'll get the latest version, and if it hasn't changed, it's still minimal traffic. It also automatically avoids creating the local file if the remote fetch failed, so you won't end up with an empty RFC file if something's broken.
-- Randal L. Schwartz, Perl hacker
In Section
Cool Uses for Perl
|
|