lorenw14 has asked for the wisdom of the Perl Monks concerning the following question:
I have been working on converting files to a one-line explicit command line to the Perl interpreter but I have no idea how to do this one.
while(<>){ while(/A\s+HREF\s*=\s*"([^"]+)"/ig){ $foo{$1}=1; } } for(keys %foo){ print "<img src=\"$_\"><br>\n"; }
Edit 2001-04-16 by Corion : Added <CODE> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(sacked: HTML::LinkExtor) Re: one line programs
by sacked (Hermit) on Apr 16, 2001 at 05:28 UTC | |
|
(Buzzcutbuddha - Formatting of question) - Re: one line programs
by buzzcutbuddha (Chaplain) on Apr 16, 2001 at 05:28 UTC | |
by lorenw14 (Initiate) on Apr 16, 2001 at 05:45 UTC | |
by lorenw14 (Initiate) on Apr 16, 2001 at 05:48 UTC |