Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: Match Ip Address on cmd line

by sans-clue (Beadle)
on Sep 09, 2011 at 14:03 UTC ( #925092=note: print w/ replies, xml ) Need Help??

in reply to Re: Match Ip Address on cmd line
in thread Match Ip Address on cmd line

thanks so much, does the trick. what does qq mean ?

Also, yes I know this isn't a code writing service, but I could not find an 'if m/...' example in a command line, plus I would have never come up with 2 |'s

Comment on Re^2: Match Ip Address on cmd line
Replies are listed 'Best First'.
Re^3: Match Ip Address on cmd line
by halley (Prior) on Sep 09, 2011 at 14:45 UTC

    The things you ask about are partly about style choices.


    do_something() if <condition>; if (<condition>) { do_something(); }


    m[regex] m|regex| m/regex/ /regex/


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


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

      veddy nice I like. thanks
Re^3: Match Ip Address on cmd line
by RyuMaou (Deacon) on Sep 09, 2011 at 14:58 UTC

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-11-27 12:16 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 (727 votes), past polls