Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Push function

by manoj_speed (Vicar)
on Apr 06, 2009 at 05:36 UTC ( #755638=note: print w/ replies, xml ) Need Help??

in reply to Push function

You can use this to achieve it.

use Data::Dumper; my @arr = ([11,22,[[]]],[333,444,[]],[6666,7777,[]]); push(@{$arr[0][2][0]},3); print Dumper @arr;

Comment on Re: Push function
Download Code
Replies are listed 'Best First'.
Re^2: Push function
by boom (Scribe) on Apr 06, 2009 at 05:50 UTC
    Hi manoj_speed,

    Is it possible to push a value into anonymous array without dereference it


      "How do I make a phone call to England?" - "Here you go, you take the phone and dial..." - "can I do that without a phone?".

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2015-12-01 04:05 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (792 votes), past polls