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).


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 scrutinizing the Monastery: (11)
As of 2014-12-26 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls