Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Strange behavior with List::Util qw{first} on perl >= 5.20

by Anonymous Monk
on May 26, 2015 at 21:41 UTC ( #1127901=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MList::Util=first -le 'print first {lc eq "abc"}
        keys %{{ABC=>"ABC"}}'
    ...
    $ perl -MList::Util=first -le 'print first {lc eq "abc"}
        values @{["ABC"]}'
    ABC
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2018-12-18 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (80 votes). Check out past polls.

    Notices?