Hello,

I'm not sure if the syntax below is correct:

next if /\/0$|^127\./;

( the regex means when meet something like 192.168.1.0/0 or 127.0.0.1
it will be next.)

Or do I need to use () to enclose the char at both sides of the "|" ?

next if  /(\/0$)|(^127\.)/;

Please help, thanks!

Regards.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to