in reply to Re: Re: Re: Re: Sharing the scalar love?
in thread Sharing the scalar love?
S.pm....
package S; use strict; use warnings; require Exporter; @S::ISA = qw(Exporter); @S::EXPORT = qw($x); our $x = 1; 1;
And t.pl again..
I hate this since it imports into the user's symbol table.. which I hate. I prefer my first answer since it's less prone to mucking up the user space.use strict; use warnings; use S; print $x; print "\n";
Note: someone reply to my bad usage of @S::ISA. Someone prolly knows of a better way of doing this with strict on :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Sharing the scalar love?
by Joost (Canon) on Dec 22, 2003 at 21:51 UTC | |
by NetWallah (Canon) on Dec 22, 2003 at 22:43 UTC | |
|