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

Re: Push function

by bichonfrise74 (Vicar)
on Apr 06, 2009 at 20:03 UTC ( #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? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-01-25 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (65 votes). Check out past polls.

    Notices?