in reply to CPAN Alternative to perl formats?

Well, I don't know a much about Text::Reform, but, it seems like you could store the format in a file, and when you want to use it, just open the file and read the format.

You may also want to look at Perl6::Form. It impliments Perl6's formats which are very powerful. Unlike most Perl6 packages, it doesn't use source filters and is likely very suitable for production use. You will probably still have to read the format from the file.

Update

I wasn't thinking too well... Perl6::Form still requires you to intermix the format with the variables. I'll keep thinking!

Ted Young

($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)

Replies are listed 'Best First'.
Re^2: CPAN Alternative to perl formats?
by saberworks (Curate) on Dec 04, 2004 at 01:53 UTC
    I took a look at Perl6::Form and it looked surprisingly similar to Text::Reform. And guess what? It's made by the same author ;) I bet they just used Text::Reform as the basis for Perl6::Form. Thanks for the suggestion, I think I'll keep looking but I'll keep this one in mind.