or in more draconian fashionif ( ref( $your_var ) =~ /HASH/ ) { ... }
It won't tell you whether a scalar is a string or a number.if ( ref( $your_var ) eq 'HASH' ) {...}
Phil
In reply to Re: The instance/type of a variable
by philcrow
in thread The instance/type of a variable
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |