It's simple to do that in Perl.For example,if you want to capture the unix 
command pwd's output,you just do:

my @pwd = `pwd`;
print @pwd;

just good as you input 'pwd' command under unix shell.


-----Original Message-----
>From: Irfan J Sayed <[EMAIL PROTECTED]>
>Sent: Apr 13, 2006 11:44 AM
>To: beginners@perl.org
>Subject: array 
>
>Hi All,
>
>I need to store the output of command in one array. the output of that 
>command is generally 5 to 6 lines . i wanted to store each line in the 
>array
>
>how can i achieve that .
>
>Regards
>Irfan Sayed
>
> 


--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


  • array Irfan J Sayed
    • Re: array Jeff Pang

Reply via email to