Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Assigning output of unix command to a variable

by ikegami (Pope)
on Dec 23, 2009 at 01:36 UTC ( #814037=note: print w/replies, xml ) Need Help??


in reply to Assigning output of unix command to a variable

Is the only problem that you forgot to escape the $ in $2? $2 is getting interpolated just like $_.

( Oops, I must have had this node open a while since almut already said this a while ago, and she caught a problem I missed. )

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://814037]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2017-03-30 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (364 votes). Check out past polls.