[Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

Lars Balker Rasmussen lars at balker.dk
Mon Apr 20 20:25:27 GMT 2009


On Mon, Apr 20, 2009 at 10:19 PM, Oleg Kostyuk <cub.uanic at gmail.com> wrote:
> 2009/4/20 Lars Balker Rasmussen <lars at balker.dk>:
>> On Mon, Apr 20, 2009 at 9:58 PM, Oleg Kostyuk <cub.uanic at 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



More information about the Catalyst mailing list