in reply to Dereferencing simple variable

just defined($help) will suffice
why you reference a scalar $help to $test, any reasons for that?.

Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.

Replies are listed 'Best First'.
Re^2: Dereferencing simple variable
by chrishowe (Acolyte) on Apr 01, 2009 at 12:57 UTC
    I'm reading in a large list of varibles. If the variable doesn't exist then define it. In a nutshell :-)
      That sounds like you could use a hash instead. Is there a good reason why that's not possible?
        I am thinking of using a hash method. I'm not used to hashes so never see them as the answer straight away. Ahh well, progress progress progress :-)
      putting the part of actual code you were talking about here will help in guiding you, also see perldsc

      Vivek
      -- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.