Think about Loose Coupling | |
PerlMonks |
Re: Dynamically create a format definitionby jmcnamara (Monsignor) |
on Dec 13, 2001 at 19:54 UTC ( [id://131640]=note: print w/replies, xml ) | Need Help?? |
Have a look at the formline function and the accumulator $^A. Here is a short, seasonal, example that centres the elements of an array on separate lines. The format is built dynamically.
--
In Section
Seekers of Perl Wisdom
|
|