in reply to Re: Sharing Across Packages
in thread Sharing Across Packages
But if you prefer simple rules and don't want to spend a few braincells wondering whether it makes sense to deviate from a guideline, you can always do:
After all, subroutine are (global) variables as well - but noone ever yells at you for using them.package main; my $MW = ...; # Create your main window here. sub UNIVERSAL::MW {$MW}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sharing Across Packages
by polettix (Vicar) on Sep 29, 2006 at 15:59 UTC |