unwashed_masses has asked for the wisdom of the Perl Monks concerning the following question:
/me grovels and presents my humble question
As i'm reading in an HTML file, I would like say something like this:
if( $_ =~ /<span class="$hash{$ANY-KEYS-IN-THE-HASH}"/i .. /span>/i ) +{ print $_; }
but, i can't seem to make the interperter happy with any of they ways i've been saying $ANY-KEYS-IN-THE-HASH. i think (know) a loop or nested if statments might be a bit klunky.
any suggestions or ideas?
thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reg-Ex, range, and Exists...
by Tomte (Priest) on Mar 12, 2003 at 15:57 UTC | |
by BrowserUk (Patriarch) on Mar 12, 2003 at 16:43 UTC | |
by zby (Vicar) on Mar 12, 2003 at 18:33 UTC | |
|
Re: Reg-Ex, range, and Exists...
by zby (Vicar) on Mar 12, 2003 at 16:20 UTC | |
by unwashed_masses (Initiate) on Mar 12, 2003 at 19:37 UTC | |
|
Re: Reg-Ex, range, and Exists...
by boo_radley (Parson) on Mar 12, 2003 at 16:00 UTC |