Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Returning lists vs arrays

by BrowserUk (Patriarch)
on Jan 20, 2003 at 17:01 UTC ( [id://228395]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub get_3d_xyz { 
        $self = shift;
    ...
    
        return @xyz;
    }
    
  2. or download this
    sub get_3d_xyz { 
        $self = shift;
        return ( $self->get_x(), $self->get_y(), $self->get_z() );
    }
    
  3. or download this
    use constant SELF => 0;
    sub get_3d_xyz { 
    ...
        , $_[SELF]->get_y()
        , $_[SELF]->get_z() ); 
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-25 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found