On Mon, Apr 20, 2009 at 10:19 PM, Oleg Kostyuk <[email protected]> wrote:
> 2009/4/20 Lars Balker Rasmussen <[email protected]>:
>> On Mon, Apr 20, 2009 at 9:58 PM, Oleg Kostyuk <[email protected]> wrote:
>>
>> May I suggest:
>>
>> my $t1 = Text::SimpleTable->new( 5, 10 );
>> my $t2 = Text::SimpleTable->new( [ 5, 'Foo' ], [ 10, 'Bar' ] );
>> my $t3 = Text::SimpleTable::AutoWidth->new( {
>> max_width => 40,
>> captions => [qw/Foo Bar Baz/],
>> } );
>>
>> Backwards compatible, easy to test for.
>
> Not sure that understood what you mean here.
> Please, explain little bit more.
Bah, cut'n'paste'n'user error:
>> my $t3 = Text::SimpleTable->new( {
>> max_width => 40,
>> captions => [qw/Foo Bar Baz/],
>> } );
I meant, it's easy to extend the Text::SimpleTable API without breaking
backwards compatibility.
--
Lars Balker Rasmussen Consult::Perl
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/