Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: RFC: Inline::Blocks or inline as a keyword?

by tobyink (Canon)
on Sep 09, 2018 at 20:04 UTC ( #1221999=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MDevel::Hide=Ref::Util::XS,Type::Tiny::XS -MTypes::Standard=-t
    +ypes -E'say HashRef->inline_check(q/$myvar/)'
    Devel::Hide hides Ref/Util/XS.pm, Type/Tiny/XS.pm
    (ref($myvar) eq 'HASH')
    
  2. or download this
    $ perl -MDevel::Hide=Ref::Util::XS,Type::Tiny::XS -MTypes::Standard=-t
    +ypes -E'say ArrayRef->of(HashRef)->inline_check(q/$myvar/)'
    Devel::Hide hides Ref/Util/XS.pm, Type/Tiny/XS.pm
    do { (ref($myvar) eq 'ARRAY') and do { my $ok = 1; for my $i (@{$myvar
    +}) { ($ok = 0, last) unless (ref($i) eq 'HASH') }; $ok } }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2020-02-28 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (127 votes). Check out past polls.

    Notices?