I updated the code to use a tag to facilitate the import of the constants.
One note: use constant { .. }; requires a moderately recent Perl.
Not really.
It works since 1.03 (Jul 2001)
It works with Perl 5.6.0 (Mar 2000). It might work with older version too, but that's as far back as I can test.
Perl 5.8.0 (Jul 2002) was the first version of Perl than came with a version of constant that supported this syntax.
In reply to Re^5: Mixing procedural and OO code, one file.
by ikegami
in thread Mixing procedural and OO code, one file.
by DStaal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |