in reply to How to differentiate hash reference and object reference?
#!/usr/bin/perl use warnings; use strict; use Data::Dumper; my $foo = {}; bless($foo, "SOMECLASS"); #Comment this line out. my $type = ref $foo; print $type, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to differentiate hash reference and object reference?
by chromatic (Archbishop) on Aug 31, 2005 at 17:25 UTC | |
by diotalevi (Canon) on Aug 31, 2005 at 17:46 UTC | |
by davis (Vicar) on Aug 31, 2005 at 18:08 UTC |