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

In reply to Re^3: disadvantages of perl by Anonymous Monk
in thread disadvantages of perl by perldesire

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":