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
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
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
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]
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
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
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
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
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]
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
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]
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]
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
13 matches
Mail list logo