in reply to defining constant in other package
sub Ro:Sham::Bo::DEBUG(){ !!1 } sub Ro:Sham::Bo::DEBUG(){ !!0 } package Ro:Sham::Bo; use constant DEBUG => !!$ENV{PERL_RO_SHAM_BO};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: defining constant in other package
by Anonymous Monk on Apr 24, 2012 at 14:31 UTC | |
|
Re^2: defining constant in other package
by LanX (Saint) on Apr 24, 2012 at 14:41 UTC | |
by Corion (Patriarch) on Apr 24, 2012 at 14:45 UTC | |
by LanX (Saint) on Apr 24, 2012 at 14:50 UTC |