Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Something eq hashref key

by hdb (Monsignor)
on Mar 25, 2019 at 14:17 UTC ( #1231660=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub slex { my $h = shift; return map { exists $h->{$_} || 0 } @_ }
    
    my %h = map { $_ => 1 } 'a'..'t';
    my @bool = slex \%h, 'a'..'z';
    print "@bool\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-08-12 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?