Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

$foo->bar = 14;

by Juerd (Abbot)
on Dec 29, 2002 at 19:25 UTC ( #222941=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    BEGIN {
        no strict 'refs';
    ...
            }
        }
    }
    
  2. or download this
    BEGIN {
        no strict 'refs';
    ...
            *$property = sub : lvalue { $_[0]->{$property} };
        }
    }
    
  3. or download this
    OLD SITUATION           NEW SITUATION
    
    ...
      $temp =~ s/foo/bar/;
      $foo->bar($temp);
    }                       $foo->bar =~ s/foo/bar/
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://222941]
Approved by elusion
Front-paged by mojotoad
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2016-06-30 03:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (388 votes). Check out past polls.