Thanks a lot...
Sometimes my head gets jammed like the traffic situation in SFO and these days in Bangalore....:-)
-Arijit
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Hi Arijit,
>I am just wondering...what am I doing wrong here. Why isn't "$latest_CPU_load\n" printing the desired value like $top_output[2]....
grep returns an array which in scalar context evaluates to the number of elements in there. (There is one line containing 'load average')
>Any help here?
Yes write the assignment the way you intended it. ;-)
($latest_CPU_load)= grep(/load average/, @top_output);
HTH
George Mavridis
Arijit Das
Infosys Technologies Ltd.
Mangalore - 575 006, India
Cell Phone: 9448135200
E-Mail: [EMAIL PROTECTED]
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
_______________________________________________ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs