in reply to Re: Re: use simple scalar names to point to specific array elements
in thread use simple scalar names to point to specific array elements

Oh ick. Use a hash and read "Why it's stupid to `use a variable as a variable name" Part 1, 2, 3. You're in the same ballpark as symbolic references (except worse because you are using eval).
  • Comment on Re: Re: Re: use simple scalar names to point to specific array elements

Replies are listed 'Best First'.
Re: Re: Re: Re: use simple scalar names to point to specific array elements
by Sandy (Curate) on Dec 05, 2003 at 21:24 UTC
    Of course it's an 'ick'. That's why I came to perl monks for some help brainstorming for further ideas.

    I really don't want to write code that does not compile under 'use strict', because even I can make mistakes sometimes.

    I shall think upon hashes, and come up with something that will work (anything is possible given enough time and determinination)

    Sandy