in reply to Re: Best practices - if any?
in thread Best practices - if any?
It gives me a long list of errors like these:
Variable "$datalock" is not imported at agent.pl line 277. Variable "$debug" is not imported at agent.pl line 285.Global symbol " +$datalock" requires explicit package name at agent.pl line 277. Global symbol "$debug" requires explicit package name at agent.pl line + 285.
I tried do and require. I had to copy use commands from the main part to the second one to get it compiled this far but now it whines about many variables like:
our $datalock = MyLock::new; our $debug = 1; #Debug messages
I understand that do works in limited lexical view but how should I originally declare variables which spans to global scope if "our" is not global enough?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Best practices - if any?
by almut (Canon) on Feb 20, 2010 at 23:22 UTC |