Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 browsing the Monastery: (7)
As of 2018-12-12 16:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (60 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!