Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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 drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2015-11-26 13:17 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (699 votes), past polls