in reply to How to differentiate hash reference and object reference?
For fucks sake, just use Params::Validate!
sub wants_foo_object { my ( $foo ) = validate_pos( @_, { class => 'foo' } ); .... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to differentiate hash reference and object reference?
by xdg (Monsignor) on Aug 31, 2005 at 14:32 UTC | |
by holli (Abbot) on Aug 31, 2005 at 15:19 UTC |