Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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).


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

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 taking refuge in the Monastery: (6)
As of 2014-10-25 20:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (148 votes), past polls