> -----Original Message-----
> From: Mazhar [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 05, 2006 12:16 PM
> To: beginners@perl.org
> Subject: Help Required on the Script
> 
> 
> Hi Guyz,
>             i am writin a script to automate the command 
> snmpwalk by reading
> the contents of a file. Below is the snippet
> 
> $file_name="somefile.txt";
> 
> open(FILE,"< $file_name");
> 
> while(<FILE>)
> {
>         my $ip;
>         my $comm_string;
>         ($ip,$comm_string)=split(",",$_);
>         $tempRNA=qw("snmpwalk -t 1 -r 1 $ip $comm_string 
> .1.3.6.1.2.1.1.5 >
> RNA$ip.txt");
> 

may be you want qq not qw. qw returns list.

for more details about qw or qq see perlop.
perldoc perlop




Confidentiality Notice: This transmittal is a confidential communication.  If 
you are not the intended recipient, you are hereby notified that you have 
received this transmittal in error and that any review, dissemination, 
distribution or copying of this transmittal is strictly prohibited. If you have 
received this communication in error, please notify this office immediately by 
reply and immediately delete this message and all of its attachments, if any.

Reply via email to