On Wed, Jul 24, 2002 at 11:43:44AM +0200, Elizabeth Mattijsen wrote:
> At 11:25 AM 7/24/02 +0200, [EMAIL PROTECTED] wrote:
> > >     sub name {
> > >         use threads::shared ':all';
> > >         my $scalar;           # would have : shared attribute
> > >         my $other : private;  # would _not_ have : shared attribute
> > >     }
> >one should be able to declare this for packages, outside these packages.
> 
> Of course, a "threads::shared ':all' at the package level, would apply to 
> the whole package.  Which you can override in any lower scope.  Sorry if 
> that wasn't clear.

so, could i do something like this:

package Old;
use threads::shared ':all';

package treaded_app;
use Old;

(i don't know enough Perl to know if this works.) but that's what i meant,
i don't want to modify the module's files...

torvald

Reply via email to