On Mon, Apr 20, 2009 at 10:19 PM, Oleg Kostyuk <cub.ua...@gmail.com> wrote:
> 2009/4/20 Lars Balker Rasmussen <l...@balker.dk>:
>> On Mon, Apr 20, 2009 at 9:58 PM, Oleg Kostyuk <cub.ua...@gmail.com> 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: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to