Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Read a variable backwards..

by moritz (Cardinal)
on Jan 06, 2014 at 18:32 UTC ( #1069561=note: print w/ replies, xml ) Need Help??


in reply to Re: Read a variable backwards..
in thread Read a variable backwards..

Make that

say chop $str while length $str;

Otherwise if the string starts with 0, the last iteration will be omitted, because Perl considers the string 0 to be false.


Comment on Re^2: Read a variable backwards..
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2015-07-31 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls