Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Match Ip Address on cmd line

by halley (Prior)
on Sep 09, 2011 at 14:45 UTC ( #925102=note: print w/ replies, xml ) Need Help??


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:

"string-with-expanded-$variables" qq[string-with-expanded-$variables] qq/string-with-expanded-$variables/
Using qq// is common on command lines, since the shell itself may require quotes or double-quotes.

Equivalent:

'string-expanding-no-variables' q[string-expanding-no-variables] q/string-expanding-no-variables/
All of this can be found in perldoc perlsyn and perldoc perlop.

--
[ e d @ h a l l e y . c c ]


Comment on Re^3: Match Ip Address on cmd line
Select or Download Code
Re^4: Match Ip Address on cmd line
by sans-clue (Beadle) on Sep 09, 2011 at 15:43 UTC
    veddy nice I like. thanks

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2015-07-07 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (91 votes), past polls