Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Use method/function signatures with Perl

by Juerd (Abbot)
on Dec 06, 2004 at 11:40 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://412624]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found