Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: OR sequence

by hipowls (Curate)
on Mar 21, 2008 at 22:32 UTC ( #675543=note: print w/ replies, xml ) Need Help??

in reply to Re: OR sequence
in thread OR sequence

This will call &html_massage multiple times if more than one of the three items match. That may not be the OP's intent. To call &html_massage only once modify the loop to

ITEM: for my $item( @FORM{ qw/Comments addr name/ } ){ if( $item =~ m/http|html|A HREF/i) { &html_message; last ITEM; } }

Comment on Re^2: OR sequence
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://675543]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2016-02-10 05:10 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (332 votes), past polls