Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2016-12-10 10:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (161 votes). Check out past polls.