in reply to Putting HTML fieldnames in symbol space

Well, I'd agree with you, if that helps. :)

The person who wrote this code did something pretty silly by using symbolic references. I don't understand why people write things like this (well, okay, so I do: partly, because they come from other languages where it's encouraged or looked upon as the norm). But why do this when you could use a hash and make it *so* much easier for yourself?

Because as silly as that was to use symbolic refs initially, it's even sillier to *defend* them. It's *not* normal. It may be used often, but it's not used by people who know of a better way.

For what it's worth, here's some more ammunition against using symbolic refs: http://www.plover.com/~mjd/perl/varvarname2.html.

In the end, it's not your code--and if their system is going to break because of their broken programming techniques... hopefully that won't be your problem. :)

  • Comment on Re: Putting HTML fieldnames in symbol space

Replies are listed 'Best First'.
RE: Re: Putting HTML fieldnames in symbol space
by Russ (Deacon) on May 27, 2000 at 03:19 UTC
    Thanks for the link. That's what I was looking for from the Perl Monks community -- ammunition in information.

    Update After discussing this further, he has agreed to handle this code differently (and I'll talk to the client next week), if for no other reason than to pacify me. ;-)

    Russ