Help required on the script

2006-04-25 Thread Mazhar
Hi Folks, I have a script written which will read a file and analyse the input and depending on the input i should make different files for the same. The code is, ### open(FILE,"< $file_name"); while() { $line=$_; if($line= /(.*)(Unique Column name)(.

Re: What is Variable Interpolation [was: Re: Help Required on the Script]

2006-04-07 Thread D. Bolliger
John W. Krahn am Freitag, 7. April 2006 01.09: > D. Bolliger wrote: > > btw, @04 is not a valid (array) variable name; they must not start with a > > digit, as not keyword/builtin does. > > $ perl -Mwarnings -Mstrict -le' our @04 = 10 .. 14; print "@04"' > 10 11 12 13 14 > > You are probably thinki

Re: What is Variable Interpolation [was: Re: Help Required on the Script]

2006-04-06 Thread John W. Krahn
D. Bolliger wrote: > > btw, @04 is not a valid (array) variable name; they must not start with a > digit, as not keyword/builtin does. $ perl -Mwarnings -Mstrict -le' our @04 = 10 .. 14; print "@04"' 10 11 12 13 14 You are probably thinking scalars and/or lexicals. John -- use Perl; program

What is Variable Interpolation [was: Re: Help Required on the Script]

2006-04-06 Thread D. Bolliger
Mazhar am Donnerstag, 6. April 2006 11.48: > thanks Raymond for the help it works, > and what do u mean by variable interpolation Hello Mazhar It will help you a lot to know and use the documentation system of perl. You can get an overview by typing (on the command line): perldoc perl (docs) p

RE: Help Required on the Script

2006-04-06 Thread Raymond Raj
> -Original Message- > From: Mazhar [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 06, 2006 3:19 PM > To: [EMAIL PROTECTED] > Cc: beginners@perl.org > Subject: Re: Help Required on the Script > > > thanks Raymond for the help it works, > and what do u

Re: Help Required on the Script

2006-04-06 Thread Mazhar
gt; > To: Jaime Murillo > > Cc: beginners@perl.org > > Subject: Re: Help Required on the Script > > > > > > Thank you giyz for the help i require one more help from > > yourside. i have > > one more code where in i am getting error on print of a value

RE: Help Required on the Script

2006-04-06 Thread Raymond Raj
> -Original Message- > From: Mazhar [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 06, 2006 2:41 PM > To: Jaime Murillo > Cc: beginners@perl.org > Subject: Re: Help Required on the Script > > > Thank you giyz for the help i require one more help from > yo

Re: Help Required on the Script

2006-04-06 Thread swayam panda
nks Swayam - Original Message - From: "Mazhar" <[EMAIL PROTECTED]> To: "Jaime Murillo" <[EMAIL PROTECTED]> Cc: Sent: Thursday, April 06, 2006 2:41 PM Subject: Re: Help Required on the Script Thank you giyz for the help i require one more help from yourside.

Re: Help Required on the Script

2006-04-06 Thread Mazhar
Thank you giyz for the help i require one more help from yourside. i have one more code where in i am getting error on print of a value of a variable, below is the code #!/usr/bin/perl -w use strict; use warnings; my $string="[EMAIL PROTECTED]"; print $string; On executing the above i get the

Re: Help Required on the Script

2006-04-05 Thread Mazhar
thanks Jamie. It is Working. Regards Mazhar On 4/5/06, Jaime Murillo <[EMAIL PROTECTED]> wrote: > > On Tuesday 04 April 2006 23:46, Mazhar wrote: > > Hi Guyz, > > Hi Mazhar, > > > i am writin a script to automate the command snmpwalk by > > reading the contents of a file. Below is th

Re: Help Required on the Script

2006-04-05 Thread Jaime Murillo
On Tuesday 04 April 2006 23:46, Mazhar wrote: > Hi Guyz, Hi Mazhar, > 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() > { > my $ip; >

RE: Help Required on the Script

2006-04-05 Thread Raymond Raj
> -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

Help Required on the Script

2006-04-04 Thread Mazhar
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() { my $ip; my $comm_string; ($ip,$comm_string)=split(",",$_); $tempRNA=q