Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069561]
help
Chatterbox?
[Discipulus]: sane dots for your weekend marto!
[choroba]: My week was hectic as well, and so will be the next several ones...
[Corion]: Sane Dots Supplies - your brand manufacturer for satisfying experiences!
[choroba]: preparing the trip to Vietnam + buying a new car = enough fun
[Corion]: choroba: Yeah, that's a lot of "fun" for one week...
[Corion]: I guess I should stage some product photos for Sane Dots Supplies ;)
[marto]: I had some ideas about that Corion
[marto]: I'll send a message over the weekend maybe :P

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-01-20 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.