reading problems in a log file

2002-09-17 Thread Pravesh Biyani
hi i am using a log file which has three or more than three entries in a row and there are many rows.. i would like to read the file and determine few things out of it.. i want to know the way to do it. Currently i am thinking of reading the file line by line and then search for items., bu

Re: reading problems in a log file

2002-09-17 Thread pravesh biyaNI
Sudarshan Raghavan wrote: >On Tue, 17 Sep 2002, Pravesh Biyani wrote: > >>hi >> i am using a log file which has three or more than three entries in a row and >there are many rows.. >> >>i would like to read the file and determine few things out of it..

multidimensional arrays in PERL

2002-09-17 Thread pravesh biyaNI
Hi' Are there multidimensional arrays in Perl. for e.g can we write the way we write in C $elements[0][0]= something; etc..etc.. regards pravesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

error

2002-09-18 Thread pravesh biyaNI
Use of uninitialized value in concatenation (.) or string at log.pl line no 17 is a for loop for ($i =0; $i < $ line_number ; ++ $ i) the value of line_number is 1000 can somebody tell me what exactly is this error pointing to!! and how do you know about an error .. as in how to debug! regar

Re: error

2002-09-18 Thread pravesh biyaNI
pravesh biyaNI wrote: > Use of uninitialized value in concatenation (.) or string at log.pl > > line no 17 is a for loop > > > for ($i =0; $i < $ line_number ; ++ $ i) > > the value of line_number is 1000 > > can somebody tell me what exactly is this error poi

how to initialise a two dimensional array

2002-09-18 Thread pravesh biyaNI
Hi I am using a two dimentional array!! but the script on running gives an error global symbol requires explicit package name. how to use my () with a two dimentional array help awaited pravesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

simple problem

2002-09-18 Thread pravesh biyaNI
Hello Here is a very simple prblem which unfortunatly i am not able to solve. I want to compare a character to a variable and do accordingly. I am using an if loop for this!! but it seems that even if the variable is not equal to that character, it is entering the loop.. i am not able to figur

Re: simple problem

2002-09-18 Thread pravesh biyaNI
thanks.. prblm solved!!! regards pravesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

help with file reading

2002-10-07 Thread Pravesh Biyani
Hi can i pass the file variable in the function.. for eg. $lofile = " somefile"; and call the function file_read(lofile) ; where function is : sub file_read { while (<$_[0]>) blah..blah.. } Pravesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

help with files reading

2002-10-07 Thread Pravesh Biyani
hi this is regarding my last post .. there was this confusion about the suggested methoed which would work when we pass file desc as one of the input to a function. I amstill not clear about the concept. is this ok: $file =" blah blah } will this work ? pravesh

file handles!

2002-10-09 Thread Pravesh Biyani
HI I define a file the following way: $FILE_HANDLE = "<

Re: learning...

2002-10-23 Thread Pravesh Biyani
http://www.cs.cf.ac.uk/Dave/PERL/ check this out! for more webpages.. go to google.com cheers prävesh - Original Message - From: "Jean-Marie de Crozals" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 23, 2002 4:59 PM Subject: learning... > Hi... > > I'm really ne

auto ssh

2002-11-07 Thread Pravesh Biyani
hi I am not sure if this question is suitable for this group. Pardon me if its the wrong place. Basically I want a perl script, which SSH to the remote machine, gives the login, passwd and executes command at the remote machine. How do i do this? Pravesh -- To unsubscribe, e-mail:

some doubt!

2002-11-12 Thread Pravesh Biyani
hi i have a prog which should create a file according to the date and name it "$date.log" and write something depending upon other things in it! Here is the code.. which refuses to work any clues.. ? TIA pravesh -- #!/usr/bin/perl -w

Re: some doubt!

2002-11-12 Thread Pravesh Biyani
thanks verymuch.. the prgm working fine now!! cheers pravesh Frank Wiles wrote: .--[ Pravesh Biyani wrote (2002/11/12 at 17:49:14) ]-- | | hi | i have a prog which should create a file according to the date and name | it "$date.log" and write something depending

non perl help

2002-11-25 Thread pravesh biyani
Hi Guys The suggestion I would need now is related to perl only in the way that I have done the programming in Perl. Actually, I have written few scripts which I need to run between any two machines which are located far away from each other and having not too good networ