In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Rob Dixon) wrote:
> There are two ways around this: you can do what it says, and give it an explicit
> package name. For instance, if you're writing perl/lib/Local/Package.pm you can
> refer to it as
>
> Local::Package::@ISA
that is @Local
Hi Ruthie
I presume you're writing a module rather than a simple script?
There are two ways around this: you can do what it says, and give it an explicit
package name. For instance, if you're writing perl/lib/Local/Package.pm you can
refer to it as
Local::Package::@ISA
throughout. The othe
On Tue, Sep 04, 2001 at 01:47:52PM +0100, [EMAIL PROTECTED] wrote:
> if you are using perl 5.6 then u need to add a line
> our qw( @ISA )
'our' should only be used if you're using perl 5.6 and don't mind that the
'our' makes your code incompatible with earlier perl versions. 'our' should
L PROTECTED]]
> > Sent: Tuesday, September 04, 2001 8:48 AM
> > To: Ruth Albocher
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: strict pragma and @ISA
> >
> >
> > if you are using perl 5.6 then u need to add a line
> > our qw( @ISA )
>
> No,
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 04, 2001 8:48 AM
> To: Ruth Albocher
> Cc: [EMAIL PROTECTED]
> Subject: Re: strict pragma and @ISA
>
>
> if you are using perl 5.6 then u need to add a line
if you are using perl 5.6 then u need to add a line
our qw( @ISA )
if you r using perl 5.5 u ned to add a line
use vars qw( @ISA )
btw this applies to a lot of global variables like $VERSION $AUTOLOAD etc ...
On Tue, Sep 04, 2001 at 03:10:32PM +0200, Ruth Albocher shaped the ele
something like this would be good praxis:
BEGIN
use vars qw(@ISA @EXPORT_OK);
@ISA = qw(Exporter OtherModule);
@EXPORT_OK = qw(some_function);
}
damian's book is definately worth your while if you're into OO programming
btw:
"Object Orientated Perl" by Damian Conway
Published b