Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Use method/function signatures with Perl

by Juerd (Abbot)
on Dec 06, 2004 at 11:40 UTC ( #412624=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $person->name;         # get the name
    $person->name("Ovid"); # set the name
    ...
    
    $person->name($person->name . "\n");
    $person->name(do { chomp(my $temp = $person->name); $temp });
    
  2. or download this
    $person->name;
    $person->name = "Ovid";
    ...
    
    $person->name .= "\n";
    chomp $person->name;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-08-29 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls