Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Read a variable backwards..

by Utilitarian (Vicar)
on Jan 06, 2014 at 12:04 UTC ( #1069497=note: print w/replies, xml ) Need Help??


in reply to Read a variable backwards..

$ perl -E '$string="esrever"; say join("",reverse(split(//,$string))); +' reverse
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069497]
help
Chatterbox?
[finddata]: How do i perform multiple line substitution into single line for same variable using perl

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2017-02-24 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (352 votes). Check out past polls.