Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by dmitri (Priest)
on May 26, 2015 at 21:09 UTC ( #1127895=note: print w/replies, xml ) Need Help??


in reply to Strange behavior with List::Util qw{first} on perl >= 5.20

The hash does seem to have something to do with it. Strawberry Perl 5.20.0:
C:\Users\>perl -e "use List::Util qw(first); my $f = first { lc $_ eq +'qwe' } qw(QWE); print $f" QWE C:\Users\>perl -e "use List::Util qw(first); %h = qw(QWE 1); my $f = f +irst { lc $_ eq 'qwe' } keys %h; print $f" qwe

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2018-10-18 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (99 votes). Check out past polls.

    Notices?