in reply to Being more Assert-ive with Perl
Here's one that will make your brane hurt ...
If I pass $arrayref to a sub that expects a hashref, how will you tell that it is not what you expect?my $arrayref = [qw(i like pie)]; bless($arrayref, 'HASH');
Dealing with this correctly is on my to-do list for Data::Compare. It will probably involve lots of eval evil.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Being more Assert-ive with Perl
by stvn (Monsignor) on Sep 17, 2004 at 16:38 UTC | |
Re^2: Being more Assert-ive with Perl
by antirice (Priest) on Sep 18, 2004 at 02:10 UTC | |
by ysth (Canon) on Sep 19, 2004 at 03:26 UTC |