For fucks sake, just use Params::Validate!
sub wants_foo_object { my ( $foo ) = validate_pos( @_, { class => 'foo' } ); .... }
In reply to Re: How to differentiate hash reference and object reference?
by diotalevi
in thread How to differentiate hash reference and object reference?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |