in reply to Reading .cfg file

It is unlikely you will find your config data in @CFG. At the very least it will be in @CFG::CFG. You will have to pre-pend the package name (CFG::) to the variable name.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: Reading .cfg file
by Anonymous Monk on Jul 17, 2009 at 08:03 UTC
    You're assuming Sun751 has anything resembling that in his config file, for all we know he has bananas :)
      Well, he did say something about a @CFG in his post.

      And if he has bananas, it should be @CFG::bananas!

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James