in reply to Re^4: Mixing procedural and OO code, one file.
in thread Mixing procedural and OO code, one file.

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.

Replies are listed 'Best First'.
Re^6: Mixing procedural and OO code, one file.
by DStaal (Chaplain) on Feb 05, 2009 at 20:06 UTC

    Around where I work, that's recent. ;)