in reply to Re: Retrieving classname from an object
in thread Retrieving classname from an object

I had a look at ref and it didn't seem to provide this info - Do you have an example (out of curiosity) ? I'll use Scalar::Util for now. Thanks for the help.
  • Comment on Re^2: Retrieving classname from an object

Replies are listed 'Best First'.
Re^3: Retrieving classname from an object
by perrin (Chancellor) on Jul 10, 2006 at 23:35 UTC
    my $class = ref $object;
      Ah yes - to quote from Programming Perl : "If the referenced object has been blessed into a package, then that package name is returned instead."
      hehe