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? |