Shawn H. Corey wrote:
> Steve Bertrand wrote:
>> Ok, I'm done with the philosophical stuff.
>>
>> I forget where I read about the warning "...will not stay shared", so
>> I'm going for the quick answer here.
>>
> 
> Add `use diagnostics;` to the program for a more complete error message.
> 
> Also, see:
> http://www.perl.com/pub/a/2002/05/07/mod_perl.html
> http://www.perlmonks.org/?node_id=551496
> http://www.nntp.perl.org/group/perl.beginners/2008/04/msg99983.html
> 
> Try not putting a named sub inside another :)

Thanks Shawn!:

    This problem can usually be solved by making the inner subroutine
    anonymous, using the sub {} syntax.  When inner anonymous subs that
    reference variables in outer subroutines are called or referenced, they
    are automatically rebound to the current values of such variables.

Steve

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to