Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: mod_perl / Apache::Registry accidental closures

by imp (Priest)
on Jul 21, 2006 at 00:51 UTC ( #562748=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        my $val = shift;
        printf "[%s] goodness: %s\n", $$, $foo;
        $foo += $val;
    
  2. or download this
    package Apache::ROOTfoo_2ecom::test_2epl;
    use Apache qw(exit);
    ...
        printf "[%s] goodness: %s\n", $$, $foo;
        $foo += $val;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://562748]
help
Chatterbox?
[choroba]: Corion A colleague has helped me. It seems the "Modification of read-only value" was caused by old Test::More version which doesn't have done_testing, plus the old bug with $@ sometimes showing a different exception
[choroba]: will upload a fixed version and see

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2018-06-25 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?