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

Re: Simple awk question

by LanX (Saint)
on Jun 05, 2014 at 17:08 UTC ( [id://1088883]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     my $result = `awk $var1 $var2`;
  2. or download this
            
    open(my $awk, "|awk >Tmp$$") # $$ is our process id
       or die "Can't start awk: $!";
    print $awk $var1, $var2;
    close $awk;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-24 00:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found