Re: reading problems in a log file

2002-09-17 Thread Sudarshan Raghavan
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.. i want to know >the way to do it. > > Currently i am thinking of rea

Re: Clear a @

2002-09-17 Thread Dharmender Rai
use warnings; use strict; my @arr=(1,2,3); print "orig",@arr,"\n"; @arr=(); # clear the array print "now",@arr,'\n"; --- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi > Suppose i have an array a[0]=1,a[1]=45,a[3]=78 > Is there a way to clear the @a array with just one > command? so i can

Re: return type of $ua->request

2002-09-17 Thread Rum Pel
> >the request method of LWP::UserAgent returns a HTTP::Response object. Even >though this isn't explicitly documented in the LWP::UserAgent docs >(accessible via perldoc LWP::UserAgent), it seems like a reasonable first >guess. A function definition in Perl doesnt require you to specify t

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: parsing out contents

2002-09-17 Thread Sudarshan Raghavan
On Mon, 16 Sep 2002, Nandita Mullapudi wrote: > I have a parsed output in a single file, that looks like this > > Pf_sumthing.bln > > blah > blah > > Pf_sumthingelse.bln > > blah > blah > > and so on, > I want to parse this file such that i create 80 or as many little files, > each has the

get variable with regexp from array?

2002-09-17 Thread David Samuelsson (PAC)
Is there an simple way, that if i have an array, to get an simple match with a regexp to get that out as an variable? i am thinking in the lines of: $test =~ /matching regexp/, @array so it know what array it should look for this particular $test value matched by the regexp? that didnt work,

Re: Clear a @

2002-09-17 Thread Sudarshan Raghavan
On Thu, 12 Sep 2002, [EMAIL PROTECTED] wrote: > Hi > Suppose i have an array a[0]=1,a[1]=45,a[3]=78 > Is there a way to clear the @a array with just one command? so i can for > example > assingn new values like a[0]=10,a[1]=90 and for example leave a[3] empty > Something like clear @a; @a = ();

parsing out contents

2002-09-17 Thread Nandita Mullapudi
I have a parsed output in a single file, that looks like this Pf_sumthing.bln blah blah Pf_sumthingelse.bln blah blah and so on, I want to parse this file such that i create 80 or as many little files, each has the filename as its respective Pf_something and content has the blah blah. can

Clear a @

2002-09-17 Thread [EMAIL PROTECTED]
Hi Suppose i have an array a[0]=1,a[1]=45,a[3]=78 Is there a way to clear the @a array with just one command? so i can for example assingn new values like a[0]=10,a[1]=90 and for example leave a[3] empty Something like clear @a; Tanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: &sub1(@array,$var); -> passing an array and scalar to a subroutine...

2002-09-17 Thread Anthony E.
thanks, i ended up getting what i wanted with references: &sub1(\@array,$var); sub sub1() { my ($ref, $var) = @_; my @data = @$ref; ... } --- drieux <[EMAIL PROTECTED]> wrote: > > On Friday, Sep 13, 2002, at 16:29 US/Pacific, > Anthony E. wrote: > [..] > > for example, i tried this, but

Regular expression multiline matching with /m

2002-09-17 Thread reg . smith
Hello I have a perl script that runs a software build on NT4. The final stage of this build creates a binary file called "gsm_gp_flash.abs". I want to compare this to the previous instance of this file to see if anything has changed. These *.abs files contain a date stamp, so even running a diff

<    1   2