[clug] perl question
kim.holburn at anu.edu.au
Mon Oct 18 00:17:58 GMT 2004
I was wondering if one of you perl guys out there could throw some
light on this question.
I have a perl script with a config file. Recently it seemed to me that
it would be better to make the config file a perl fragment, (it just
does some variable assignments) and use a "do" statement to read it in.
Unfortunately it messes with my declarations. If I declare the
variables anywhere in a "my" declaration the assignments don't work.
If I don't declare anything it all works OK. I like to work under
"strict" but this doesn't any work more. Something about packages? I
never really understood about packages. Do I have to declare these
local or something else?
Is there a debug command to show all variables and what type they are?
IT Manager, Canberra Research Laboratory
National Information and Communication Technology Australia
Ph: +61 2 61258620 M: +61 417820641
Email: kim.holburn at anu.edu.au - PGP Public Key on request
Cacert Root Cert: http://www.cacert.org/index.php?id=16 ->
Aust. Spam Act: To stop receiving mail from me: reply and let me know.
Democracy imposed from without is the severest form of tyranny.
-- Lloyd Biggle, Jr. Analog, Apr 1961
More information about the linux