Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
go ahead... be a heretic
 
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 lurking in the Monastery: (5)
As of 2014-04-18 05:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (461 votes), past polls