NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Stringified references don't work? (Score:2)
As for names, I would go for Test::Ref, since the Perl operator is ref().
Re:Stringified references don't work? (Score:1)
For example,
use warnings;
use strict;
use Test::More tests => 2;
my $val1 = qr/foo/;
my $val2 = qr/foo/;
$a = $val1;
$b = $val1;
$c = $val2;
diag ref $a;
diag ref $b;
diag ref $c;
is($a, $b);
isnt($a, $c);
Reply to This
Parent