Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Answer: lt versus le in string comparision

by Abigail-II (Bishop)
on Jun 13, 2002 at 14:06 UTC ( #174203=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > lt versus le in string comparision - Answer contributed by Abigail-II

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
Chatterbox?
[Discipulus]: or can I ask for a module to do the back conversion from flame to txt?

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-06-23 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (538 votes). Check out past polls.