Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Returning lists vs arrays

by BrowserUk (Patriarch)
on Jan 20, 2003 at 17:01 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-09-28 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (125 votes). Check out past polls.

    Notices?