Good Afternoon:

This may be common knowledge....

I wrote a small program to learn how Class::Accessor works. And it didn't!

The object was created fine, but the accessor subroutines weren't. I found
the
solution in a stackoverflow post. Since I'm a kinda top down guy and since I
put all the packages in the same file, the mk_accessors method wasn't being
run before it was needed and thus the accessor subs weren't being created.
The
BEGIN block fixed this issue for this test structure. Not needed when the
package
is split out into separated modules that are use'ed.

Code attached.

James

Attachment: CATest.pl
Description: Binary data

Reply via email to