in reply to Dynamically create a format definition
# formated output sub sformat { my $format = shift; local $^A = ''; formline($format, @_); return $^A; } # print line using some format specification sub fprint { my $format = shift; $self->print(sformat($format, @_)); }
--
Ilya Martynov
(http://martynov.org/)
|
|---|