RE: regexp matching- real simple!-GOT IT!

2003-11-13 Thread Nandita Mullapudi
Thanks, -Nandita -Original Message- From: Nandita Mullapudi [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 5:16 PM To: [EMAIL PROTECTED] Subject: regexp matching- real simple! This has to be really easy- but I cant get it to work: I want my script to carry out a loop only if

regexp matching- real simple!

2003-11-13 Thread Nandita Mullapudi
This has to be really easy- but I cant get it to work: I want my script to carry out a loop only if the number stored in $diff is positive, so i say if ($diff =~m/^[-\d+]/) {blah blah} but it won't work. why? TIA -Nandita -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

previous element in a list

2003-10-17 Thread Nandita Mullapudi
I have a list of elements- and for every element in the list, I want to carry out an operation with the previous element or the next one, as the case might be, how do I tell perl to look at the previous element? t.i.a -Nandita -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

was re readline() on closed filehandle FILE

2003-02-11 Thread Nandita Mullapudi
i just found the problem- bad formatting of filenames in my list of files.. thanks! -nandita -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

readline() on closed filehandle FILE

2003-02-11 Thread Nandita Mullapudi
Hi all, am using the following script to parse a long list of files. funnily enough, it works fine when i try a couple sample files, but when i'm using a long list of files, it comes up with this error: readline() on closed filehandle FILE at hashing22.pl line 29, line 13 (#1) (W closed) The

picking numbers out of a file and operating on them (fwd)

2002-12-16 Thread Nandita Mullapudi
How does one tell perl to perform mathematical operations? I have a file with a series of items like this: >BLAH1 Length = 500 Identities = 20/100. >BLAH2 Length = 400 Identities = 30/70 For each item called BLAH, I want to pick the denominator in Identites and divide by Length and calculate per

picking numbers out of a file and operating on them

2002-12-16 Thread Nandita Mullapudi
How does one tell perl to perform mathematical operations? I have a file with a series of items like this: >BLAH1 Length = 500 Identities = 20/100. >BLAH2 Length = 400 Identities = 30/70 For each item called BLAH, I want to pick the denominator in Identites and divide by Length and calculate per

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

RE: printing output to a file

2002-09-09 Thread Nandita Mullapudi
Thanks ALL for the quick help! i realised my mistake, "open" shd be outside the loop.. :) :) (scripts that work, very pleasing!) nandita -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

printing output to a file

2002-09-09 Thread Nandita Mullapudi
hello list i am trying to print the output of a parsing script to a file- the way it is right now, the print commands are within a foreach loop, and it prints to the screen. in order to get the entire output into a file, i'm using a simple set of commands like so: foreach my $key (keys %a

Re: inserting a single word in every file

2002-09-05 Thread Nandita Mullapudi
Hi Thanks alot for your help, i finally got my word inserted just once in every file (was re ALIGNMENTS..) yea...am kinda slooow! :) nandita -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

use of uninitialised value..

2002-08-10 Thread Nandita Mullapudi
thanks, all, the script is working!! small pleasures of life.. cheers! -nandita -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

use of uninitialised value...

2002-08-09 Thread Nandita Mullapudi
i'm trying to run a perl script written to parse a file, and it runs fine the way it is written, however, after making little changes to accomodate my file, i get inundated with the following message "Use of uninitialized value in hash element at modif2.pl line 90" can any1 tell me what this mea