in reply to strict problem

It sounds like you want "local", which gives a global variable a local value, rather than "my" which declares a new lexical variable. Use a block to localise the effect of local:

{ local @in; ReadParse(); print $_ foreach (@in); }

I don't know cgi-lib.pl, or much Perl at all, so maybe this is wrong or off-target.

Replies are listed 'Best First'.
Re: Re: strict
by Anonymous Monk on Mar 20, 2002 at 17:31 UTC
    No, I actually want the hash 'in' (sorry for that '@' - it was just a left-over from all things I tried) to be known in the entire script, globally, not in the scope of the lib, 'main' or any arbitrary block. As it was without strict. But since the variable gets initialized and set in the included file, I wonder how I can declare it in the main script globally so it gets used even within this scope.