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 other way is to pre-delare the global variables in the package,
with

    use vars qw(@ISA);

which then lets you use the identifier without a preceding package name.

HTH,

Rob


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 04 September 2001 14:11
> To: [EMAIL PROTECTED]
> Subject: strict pragma and @ISA
>
>
> hi all.
>
> I am trying to use the strict pragma in all my perl files, but when i
> use it with @ISA I get:
> Global symbol "@ISA" requires explicit package name at ...pm line ..
> like any other variable that should be declared.
>
> I understand that @ISA is not local, but this is how it is put in all
> the examples in my book.
>
> What is the correct way to do this?
>
> thanks in advance,
> ruthie
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to