Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Why does reverse in list context operate on () instead of @_ or @ARGV (warning)

by moritz (Cardinal)
on Aug 27, 2012 at 18:39 UTC ( #990038=note: print w/replies, xml ) Need Help??


in reply to Re^3: Why does reverse in list context operate on () instead of @_ or @ARGV (warning)
in thread Why does reverse in list context operate on () instead of @_ or @ARGV

It'd be better to have separate functions for "reverse string" and "reverse list".

FWIW this is exactly what Perl 6 has: reverse for lists and flip for strings. (And invert for hashes, which returns a list of value => key pairs).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2016-09-28 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (525 votes). Check out past polls.