There's more than one way to do things | |
PerlMonks |
Re: Re: Re: Using awk within system() or open()by miyagawa (Chaplain) |
on Oct 24, 2001 at 13:06 UTC ( [id://121042]=note: print w/replies, xml ) | Need Help?? |
open(UPTOP, 'cat /proc/uptime | awk "{ print $1 } |"');Then $1 will be interpolated by shell, won't it? $1 should be AWK variable, neither Perl's one nor shell's one.
--
In Section
Seekers of Perl Wisdom
|
|