Re: Problems with gt and lt

2006-03-06 Thread John W. Krahn
ent as a string > (since numbers between 20 and 30 also triggers the loop (when > $mindet=200 and $maxdet=300). Any idea what I am doing wrong??? You might have that problem if you were using the 'gt' and 'lt' operators however your code is using the '>' and

Problems with gt and lt

2006-03-06 Thread Tommy Grav
I have a code where I want to check wether a number is bigger than or smaller than some limits, $maxdet and $mindet. These two values are given on the command line using the Getopt::Long module. However it seems like the code evaluates the if statement as a string (since numbers between 20

Useless use of numeric gt (>) in void context and Useless use of private variable in void context (Modified by vincenza maselli)

2004-12-06 Thread vincenza maselli
Hi all, I don't have underlined the row 382 because it seems irrilevant (for me) and so I have forget it! Sorry. Thank you, Vincenza # store exon my @exons = @{$transcript->get_all_Exons()}; my ($ontology_exon, $exon_start, $exon_end, $exon_strand); unless ($transcript->translation){

Re: Useless use of numeric gt (>) in void context and Useless use of private variable in void context

2004-12-05 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Vincenza Maselli) writes: >I got this error when run my scripts: >Useless use of numeric gt (>) in void context at >/Users/vincenza/src/gfdb/modules/Bio/DBLoader.pm line 382. >Useless use of private variable in void context

RE: Useless use of numeric gt (>) in void context and Useless use of private variable in void context

2004-12-05 Thread Michael Kraus
Could you please clearly point out which is line 382. Just post line 382 and/or line 382 and the surrounding block. Regards, Michael S. E. Kraus Software Developer Wild Technology Pty Ltd ___ ABN 98 091 470 692 Level 4 Tiara, 306/9 Crystal Street, Waterloo NSW 2017,

Re: Useless use of numeric gt (>) in void context and Useless use of private variable in void context

2004-12-05 Thread Lawrence Statton
Why don't you try trimming everything out except the block that encloses line 382 and post that. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Lawrence Statton - [EMAIL PROTECTED] s/aba/c/g Computer software consists of only two components: ones and zeros, in ro

Useless use of numeric gt (>) in void context and Useless use of private variable in void context

2004-12-05 Thread vincenza maselli
Hi all, I got this error when run my scripts: Useless use of numeric gt (>) in void context at /Users/vincenza/src/gfdb/modules/Bio/DBLoader.pm line 382. Useless use of private variable in void context at /Users/vincenza/src/gfdb/modules/Bio/DBLoader.pm line 382. below is the code: have some

Re: == eq > gt

2004-01-14 Thread Randal L. Schwartz
>>>>> "Paul" == Paul Kraus <[EMAIL PROTECTED]> writes: Paul> I understand that the eq and gt are for string comparisons but why not just Paul> use the mathematical ones of == or >. This goes for functions open ... or Paul> compared to open .. || Becau

Re: == eq > gt

2004-01-14 Thread Daniel Staal
--As off Wednesday, January 14, 2004 10:34 AM -0500, Paul Kraus is alleged to have said: I understand that the eq and gt are for string comparisons but why not just use the mathematical ones of == or >. This goes for functions open ... or compared to open .. || --As for the rest, it is m

Re: == eq > gt

2004-01-14 Thread Jan Eden
Because the following has different return values: beta > alpha (is false) beta gt alpha (is true) alpha eq alpha (is true) alpha == alpha (is ... I don't know, undef maybe?) For || and or, they have different precedence rankings (so you have to adjust your bracketing when exchang

Re: == eq > gt

2004-01-14 Thread James Edward Gray II
On Jan 14, 2004, at 9:34 AM, Paul Kraus wrote: I understand that the eq and gt are for string comparisons but why not just use the mathematical ones of == or >. Because we want Perl to magically convert our variables to whatever we currently mean (number or string) without making us j

== eq > gt

2004-01-14 Thread Paul Kraus
I understand that the eq and gt are for string comparisons but why not just use the mathematical ones of == or >. This goes for functions open ... or compared to open .. || Paul Kraus --- PEL Supply Company Network Administrator --- 800 321-1264 T

Re: Comparison: finding if a value is gt some value AND lt another

2002-09-30 Thread eric-perl
On Fri, 27 Sep 2002, Jeff 'japhy' Pinyan wrote: > On Sep 27, [EMAIL PROTECTED] said: > >Is there a simple way to find if a variable's value is within a range? > > if (1 < $x < 5) { print 'foo'; } > >...or do I have to join two separate comparisons using the logical AND > >operator? e.g., > > if

Re: Comparison: finding if a value is gt some value AND lt another

2002-09-27 Thread Jeff 'japhy' Pinyan
On Sep 27, [EMAIL PROTECTED] said: >Is there a simple way to find if a variable's value is within a range? >e.g., > > if (1 < $x < 5) { print 'foo'; } You can't do that until Perl 6. >or do I have to join two separate comparisons using the logical AND >operator? e.g., > > if (1 < $x and $

Comparison: finding if a value is gt some value AND lt another

2002-09-27 Thread eric-perl
Hello, All: Is there a simple way to find if a variable's value is within a range? e.g., if (1 < $x < 5) { print 'foo'; } or do I have to join two separate comparisons using the logical AND operator? e.g., if (1 < $x and $x < 5) { print 'foo'; } -- Eric P. Sunnyvale, CA -- To un

Re: gt

2002-01-16 Thread Roger C Haslock
depending on the locale! - Original Message - From: "Hanson, Robert" <[EMAIL PROTECTED]> To: "'Naveen Parmar'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 15, 2002 7:16 PM Subject: RE: gt > Yes, but it is "

RE: gt

2002-01-15 Thread McCollum, Frank
yes. 'gt' is used for strings and '>' would be the numerical equivalent. lt = less than eq = equal ne = not equal -Original Message- From: Naveen Parmar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 2:03 PM To: [EMAIL PROTECTED] Subject: gt I

RE: gt

2002-01-15 Thread Hanson, Robert
Yes, but it is "greater than" in a character code sense. So "b" (ASCII 98) is greater than "a" (ASCII 97), but "A" (ASCII 65) is less than "a". So if you need to compare 2 strings disregarding case you would want this: lc($word1) gt lc($wo

gt

2002-01-15 Thread Naveen Parmar
Is the following correct? Does 'gt' stand for 'greater than'? $word1 gt $word2 -- The string $word1 comes after $word2 - NP _ MSN Photos is the easiest way to share and print your photos: http://ph