Jose Nyimi wrote: 
> I made a copy-paste of your above code, added the following to call f():
> 
> package main;
> My::Class::f();
> 
> And got the error message below:
> Global symbol "$s" requires explicit package name at try.pl line 31.
> Execution of try.pl aborted due to compilation errors.
> 
> Which tells exactly what is going wrong: missing to declare $s in
> DESTROY().
> I'm wondering why you have got an other message.
> Double check ...

that is strange indeed.  when i use my posted code, i get the proper error
message, but in the code i'm really using, its as clear as day:  if i don't
declare $s in DESTROY(), perl complains about not finding new() in FHEAD
(which is a Class::Struct that i declared).  if i declare $s, the error
message goes away.

i'd post my code that is causing it, but i'd have to post 4 files...=/  if
you are really curious, just send me an email and i'll send you the 4
files.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to