Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by mwp (Hermit)
on Aug 05, 2000 at 12:25 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://26326]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 10:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found