Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: lt versus le in string comparision

by Abigail-II (Bishop)
on Jun 13, 2002 at 14:06 UTC ( [id://174203]=note: print w/replies, xml ) Need Help??


in reply to lt versus le in string comparision

Consider this:
my $str = 'y'; $str ++; print "$str\n"; $str ++; print "$str\n";
This will print
    z
    aa
Now, both z and aa are less or equal to z. It isn't until you reach za that you have a string that isn't less or equal to z.

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://174203]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-03-28 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found