#!/usr/bin/perl # listurl.pl -- list url to stdout use strict; use warnings; use diagnostics; listurl($_) for (map {glob} @ARGV); sub listurl { open(URL,$_[0]) or die "Couldn't open $_[0]: $!"; while (<URL>) { print $1,"\n" if (/^URL=(.*)/); } }
--hsm
"Never try to teach a pig to sing...it wastes your time and it annoys the pig."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Listing URLs to stdout
by merlyn (Sage) on Jan 09, 2005 at 20:25 UTC | |
by hsmyers (Canon) on Jan 10, 2005 at 00:48 UTC | |
by Aristotle (Chancellor) on Jan 10, 2005 at 22:50 UTC | |
by hsmyers (Canon) on Jan 13, 2005 at 15:37 UTC | |
by gellyfish (Monsignor) on Jan 13, 2005 at 15:44 UTC | |
by hsmyers (Canon) on Jan 13, 2005 at 20:19 UTC | |
| |
by jfroebe (Parson) on Jan 13, 2005 at 16:54 UTC |