|
|
| laziness, impatience, and hubris | |
| PerlMonks |
how do I use Win32::TieRegistry in a multi-platform program?by perltux (Monk) |
| on Mar 01, 2018 at 20:17 UTC ( [id://1210183]=perlquestion: print w/replies, xml ) | Need Help?? |
|
perltux has asked for the wisdom of the Perl Monks concerning the following question:
If I use Win32::TieRegistry in a program meant to run both on Windows an Linux I get the following error when running it on Linux: Global symbol "$Registry" requires explicit package name at ./script.pl line 16. Execution of ./script.pl aborted due to compilation errors. The code that leads to this is (this is only an extract of a much larger program):
The problem is that $Registry is undefined when this program runs on Linux. How do I solve this? Many thanks in advance
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||