#!/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";
In reply to Re: How to differentiate hash reference and object reference?
by davis
in thread How to differentiate hash reference and object reference?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |