Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Referencing Array Slices as Lists?

by merlyn (Sage)
on Sep 05, 2000 at 04:36 UTC ( [id://31061]=note: print w/replies, xml ) Need Help??


in reply to Referencing Array Slices as Lists?

You can pass a copy of an array slice, but no, not a reference to a slice. A copy would look like:
printref([@ary[0,2,6,10,11]]);

-- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found