002 12:53 PM
To: 'Tanton Gibbs'; Beginners (E-mail)
Subject: RE: use strict and warnings...
the our works... now I got a crap load of errors with:
Can't use string ("main::a") as a SCALAR ref while "strict refs" in use at
/xxxx/TempSorter.pm line 114.
I gotta rea
the our works... now I got a crap load of errors with:
Can't use string ("main::a") as a SCALAR ref while "strict refs" in use at
//TempSorter.pm line 114.
I gotta read the docs on use strict and warnings.
I am using ${caller()."::a"} #line 114 in my prog
From: Nikola Janceski <[EMAIL PROTECTED]>
> I am going through my old code and adding:
> use strict;
> use warnings;
>
> And I am running into some problems. I created a module (that I know
> works).
>
> [ snip FILE: TempSorter.pm ]
> ## Packages used
> package TempSorter;
> u
OOPS! don't put the comma in the qw!
use vars qw(@ISA @EXPORT);
- Original Message -
From: "Tanton Gibbs" <[EMAIL PROTECTED]>
To: "Nikola Janceski" <[EMAIL PROTECTED]>; "Beginners (E-mail)"
<[EMAIL PROTECTED]>
Sent: Thursday, March 0
o: "Beginners (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 12:03 PM
Subject: use strict and warnings...
> I am going through my old code and adding:
> use strict;
> use warnings;
>
> And I am running into some problems. I created a module (tha
I am going through my old code and adding:
use strict;
use warnings;
And I am running into some problems. I created a module (that I know works).
[ snip FILE: TempSorter.pm ]
## Packages used
package TempSorter;
use Exporter;
use strict;
### GLOBAL VARIABLES
@ISA = qw(Exporter);
@EXPORT = qw( w