Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Html - dynamic array

by davorg (Chancellor)
on Jul 24, 2009 at 07:56 UTC ( #782868=note: print w/replies, xml ) Need Help??

in reply to Html - dynamic array

See "Why it's stupid to 'use a variable as a variable name'" - Part 1, Part 2, Part 3.

There are good reasons why use strict makes symbolic references (aka "using variables as variable names") illegal. It's a really bad idea.

In your case, I can't see any advantage that you have over just using an array called @ARR (though a better naming strategy might be nice). In the general case, you're almost always better off using hashes to store references to arrays.


See the Copyright notice on my home node.

Perl training courses

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2016-10-20 22:36 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (283 votes). Check out past polls.