in reply to Re: Re: Dynamic Variable Names?
in thread Dynamic Variable Names?

The only coding practice that doesn't lead to bugs is to not code at all. eval()s are as dangerous as code written with vi - you can make the same mistakes.

Abigail

Replies are listed 'Best First'.
Re: Re: Dynamic Variable Names?
by Anonymous Monk on Jul 25, 2002 at 00:36 UTC
    You can make the same mistakes with any coding practice - agreed. Which leads to the question of how often you make them, and how quickly you catch them.

    I submit that liberal usage of eval for most people leads to more mistakes, and more difficulty in tracking them down and debugging them. (Particularly if you don't religiously check $@.) Given its power it is sometimes worth going there. But not when there are built-in constructs for doing the same thing you are trying to do.