Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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?
[Your Mother]: Most health insurance will cover that.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-11-23 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (336 votes). Check out past polls.

    Notices?