Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: what's difference between bless and tie?

by BrowserUk (Pope)
on Dec 23, 2012 at 13:37 UTC ( #1010095=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    tie my @array, 'Some::Thing';
    
    ...
    
    $array[ $n ] *= 5;
    
  2. or download this
    my $myObj  = Some::Thing->new();
    ...
    
    $myObj->setItem( $n, $myObj->getItem( $n ) * 5 );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-07-31 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (249 votes), past polls