http://www.perlmonks.org?node_id=609161


in reply to Re: File Handle qwerk?
in thread File Handle qwerk?

Try changing that line to:

$memcmd="/usr/sbin/prtconf | grep Memory";

Shouldn't that be

$memcmd="/usr/sbin/prtconf | grep Memory |";

Replies are listed 'Best First'.
Re^3: File Handle qwerk?
by chargrill (Parson) on Apr 10, 2007 at 15:07 UTC

    Yep. I admit to not testing it - I'm not used to reading the output of a command that way.

    I've corrected it above.



    --chargrill
    s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)