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 making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-07-29 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls