Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 meditating upon the Monastery: (10)
As of 2014-11-28 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (196 votes), past polls