Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Refactoring Perl #7 - Remove Assignments to Parameters

by Anonymous Monk
on Aug 23, 2007 at 13:50 UTC ( [id://634635]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://634635]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-14 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found