in reply to Refactoring Perl #7 - Remove Assignments to Parameters

You say "... that objects are generally blessed references (although they don't have to be)".

What else can they be (other than blessed references)?

  • Comment on Re: Refactoring Perl #7 - Remove Assignments to Parameters

Replies are listed 'Best First'.
Re^2: Refactoring Perl #7 - Remove Assignments to Parameters
by agianni (Hermit) on Aug 23, 2007 at 13:57 UTC
    Err... you're right, for some reason I was thinking you could bless a simple scalar, but that's not the case. Not sure what I was thinking.
    perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi +n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79 +*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'
Re^2: Refactoring Perl #7 - Remove Assignments to Parameters
by blazar (Canon) on Aug 24, 2007 at 11:15 UTC
    What else can they be (other than blessed references)?

    With the autobox module, bultin datatypes can be used as first class objects.