I've started to use the rather spiffy Class::Std module from CPAN to implement my classes for a mod_perl2 project I'm working on, but the classes I'm using are loaded at run-time according to how things are configured. This gives me the following warning in my error_log:
Too late to run CHECK block at /usr/lib/perl5/site_perl/5.8.6/Class/Std.pm line 359.
Now, I've had a look at the Class::Std code, and line 359 is the end of a rather large check block that looks like it's making the various subroutine attributes work. From some experimentation on the CLI, it looks like CHECK blocks aren't executed when the module is loaded via eval EXPR.
Two question to this:
1) Will this break the Class::Std subroutine attributes? (I suspect that it will)
2) If this breaks things, is there a way to make them work that allows me to load my classes at run-time?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.