Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Push function

by bichonfrise74 (Vicar)
on Apr 06, 2009 at 20:03 UTC ( [id://755834]=note: print w/replies, xml ) Need Help??


in reply to Push function

Hello, I wrote it in this manner... Although the code looks ugly, I find it more readable. Is this a bad practice though?

#!/usr/bin/perl use strict; use Data::Dumper; my @arr = ( [11,22,[[]]], [333,444,[]], [6666,7777,[]] ); push ( @{ @{ @{ @arr }[0]->[2] }[0] }, 'bbb' ); print Dumper(\@arr);

Log In?
Username:
Password:

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

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

    No recent polls found