I have a bit of a stupid question - I'm trying to use 'strict', and it's giving me headaches...
I have a variable that is returned by a function in another file (@in, in function ReadParse from the well-known cgi-lib.pl). Without strict, I can just execute &ReadParse, and use $in{'...'}; but with strict, it expects me to declare this variable. If I declare it locally in my perlscript (my (@in);) then it uses a different variable (which is logical, it declares a new one in the scope of the current function which 'overwrites' the other var)... So how do I use a variable from a included library-file if strict is on?
I thought something like 'my (@in) = &ReadParse;' would work, but it doesn't... :(
All explanation welcome, I want to understand this good for once and for all (that's why I want strict).
Title edit by tye as single-word titles complicate future simple searches
In reply to strict problem by december
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |