Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Consise way to filter out keys with undef values from a hash slice?

by choroba (Cardinal)
on Jun 02, 2020 at 09:21 UTC ( [id://11117588]=note: print w/replies, xml ) Need Help??


in reply to Re: Consise way to filter out keys with undef values from a hash slice?
in thread Consise way to filter out keys with undef values from a hash slice?

> with Perl 5.30.0 I get no errors or warnings

5.20.0 Delta: New slice syntax.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re^2: Consise way to filter out keys with undef values from a hash slice?
  • Download Code

Replies are listed 'Best First'.
Re^3: Consise way to filter out keys with undef values from a hash slice?
by kcott (Archbishop) on Jun 02, 2020 at 09:52 UTC
      Then I've probably misunderstood the part of your post I quoted.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

        No worries. :-)

        — Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found