in reply to Re^2: Object Oriented Perl - very basic guide
in thread Object Oriented Perl - very basic guide

You didn't quote the whole phrase: You can ever bless a scalar (...) or code reference.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re^3: Object Oriented Perl - very basic guide

Replies are listed 'Best First'.
Re^4: Object Oriented Perl - very basic guide
by muba (Priest) on May 15, 2014 at 15:40 UTC

    If you parse that as "(a ((scalar or code) reference)" then what you said wasn't wrong. However, if you parse that as "(a (scalar) or (code reference))" like morgon and I did, then you'll have to admit that morgon has a point.

    However, a reference is a scalar of course, so technically a claim that "you can even bless a scalar" isn't incorrect as much as it's redundant, given that you can only bless references :)