Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^3: disadvantages of perl

by Anonymous Monk
on Jul 02, 2009 at 14:36 UTC ( #776766=note: print w/ replies, xml ) Need Help??

in reply to Re^2: disadvantages of perl
in thread disadvantages of perl

Should be

if( UNIVERSAL::isa($r,'HASH') and %$r ) { ... }

Comment on Re^3: disadvantages of perl
Download Code
Replies are listed 'Best First'.
Re^4: disadvantages of perl
by chromatic (Archbishop) on Jul 02, 2009 at 23:08 UTC

    ... except that even that abusive code can't accurately determine if you can dereference all hashlike $r as a hash.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-08-31 23:09 GMT
Find Nodes?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...

    Results (366 votes), past polls