in reply to Re^2: Match Ip Address on cmd line
in thread Match Ip Address on cmd line
The things you ask about are partly about style choices.
Equivalent:
do_something() if <condition>; if (<condition>) { do_something(); }
Equivalent:
m[regex] m|regex| m/regex/ /regex/
Equivalent:
Using qq// is common on command lines, since the shell itself may require quotes or double-quotes."string-with-expanded-$variables" qq[string-with-expanded-$variables] qq/string-with-expanded-$variables/
Equivalent:
All of this can be found in perldoc perlsyn and perldoc perlop.'string-expanding-no-variables' q[string-expanding-no-variables] q/string-expanding-no-variables/
--
[ e d @ h a l l e y . c c ]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Match Ip Address on cmd line
by sans-clue (Beadle) on Sep 09, 2011 at 15:43 UTC |
In Section
Seekers of Perl Wisdom