Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Use method/function signatures with Perl

by Ovid (Cardinal)
on Dec 06, 2004 at 02:42 UTC ( #412567=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    public String name () {
        return name;
    }
    ...
        this.name = name;
        return name;
    }
    
  2. or download this
    sub name {
        my $self = shift;
        if (1 == @_ && ! ref $_[0]) {
    ...
            croak "Unknown arguments to name()";
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2016-09-29 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (552 votes). Check out past polls.