Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: File Handle qwerk?

by ikegami (Pope)
on Apr 10, 2007 at 14:42 UTC ( #609161=note: print w/replies, xml ) Need Help??

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.

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://609161]
[LanX]: anyway ... the (official) leave date is in March 2019
[marto]: choroba no :P
[hippo]: Under 400 days to go
[Discipulus]: marto you ask for it..

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2018-02-23 11:06 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (301 votes). Check out past polls.