in reply to RE: RE: RE: Re: Perl Safety
in thread Perl Safety
That's a stab in the dark. I'm tired and I don't feel like taking the time to construct your situation for testing. But I think that is the direction to go. My_Wrapper will collect ugly globals, but they shouldn't propogate to My_main.use strict; # To make sure you use the right package names. package My_Wrapper; sub My_get_data { local $x, $y, $z; # I had 'my', but [tilly] is right. # Thats why I said, "I think." here. get_data( @_ ); return ( $x, $y, $z ); } package My_main my ( $x, $y, $z ) = My_Wrapper::My_get_data;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: RE: RE: Re: Perl Safety
by gaspodethewonderdog (Monk) on Aug 25, 2000 at 23:58 UTC | |
|
RE (tilly) 6: Perl Safety
by tilly (Archbishop) on Aug 26, 2000 at 00:14 UTC |