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

(Slice 'em and Dice 'em) RE: Arrays are not lists

by mwp (Hermit)
on Aug 05, 2000 at 12:25 UTC ( #26326=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub ret_list {
        return $_[0..$#_];
    }
    
  2. or download this
    sub ret_slice {
        return @_[0..$#_];
    }
    
  3. or download this
    # the data
    our @zot = qw(apples Ford perl Jennifer);
    
    ...
        my @bar = @_[0..2];
        return (wantarray()) ? @bar : "@bar";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2015-07-28 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls