Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Syntax for Slice of dereferenced array

by CheeseLord (Deacon)
on Jul 22, 2001 at 03:58 UTC ( [id://98728]=note: print w/replies, xml ) Need Help??


in reply to Syntax for Slice of dereferenced array

You can do either of the following:

@$r[1,2] = @$r[2,1];

Or the more explicit dereferencing way:

@{$r}[1,2] = @{$r}[2,1];

Either way should work.

His Royal Cheeziness

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-18 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found