Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Using Perl instead of awk!

by codiac (Beadle)
on Oct 01, 2014 at 01:56 UTC ( #1102505=note: print w/replies, xml ) Need Help??


in reply to Using Perl instead of awk!

For your code to work you need to escape the '$' awk is using:
my $pSWP = `awk '/something/ { print \$3 }' /dir/file`;
But like others said, why use awk when you can do it in perl :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2023-09-27 07:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?