>>>>> "JB" == Jim Bauer <holdsworth...@eml.cc> writes:

  >> if ( m!(www.\S+.com)!s ) {
  JB> Try m!(www.\S+.com)!sg

don't use alternate delimiters unless you must. it makes for harder to
read code. stick with // unless you have a / inside the regex. and the
best alternate delimiters are paired ones like {} as they are the most
readable. and when you use // you don't need the m operator.

this is for the OP and this replier who used ! as the delimiter. 

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
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