Skip Menu |

This queue is for tickets about the Text-TabularDisplay CPAN distribution.

Report information
The Basics
Id: 77944
Status: resolved
Priority: 0/
Queue: Text-TabularDisplay

People
Owner: darren [...] cpan.org
Requestors: patrick.kuijvenhoven [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.30
Fixed in: 1.33



Subject: "Use of uninitialized value in split" when run in "perl -w" mode
Date: Thu, 21 Jun 2012 13:53:36 +0200
To: bug-Text-TabularDisplay [...] rt.cpan.org
From: Patrick <patrick.kuijvenhoven [...] gmail.com>
Text::TabularDisplay 1.30 produces warnings in case perl is run in "-w"-mode and the data contains an "undef". Step to reproduce: $ perl -MText::TabularDisplay -w -e 'print Text::TabularDisplay->new(qw/a b/)->add(1, undef)->render()."\n"' Output: Use of uninitialized value in split at /usr/local/lib/perl5/site_perl/5.8.8/Text/TabularDisplay.pm line 281. Use of uninitialized value in split at /usr/local/lib/perl5/site_perl/5.8.8/Text/TabularDisplay.pm line 254. +---+---+ | a | b | +---+---+ | 1 |   | +---+---+ The cause is that split() (at least in perl 5.8.8) doesn't like to split undef values: $ perl -w -e 'print split("\n", undef);' Use of uninitialized value in split at -e line 1.
I've fixed this in https://github.com/dlc/text-- tabulardisplay/commit/4b9bd105d9ebaf8ac838e8e993216e4b56d85683#TabularDisplay.pm . I'll be uploading version 1.31 soon.
Subject: Re: [rt.cpan.org #77944] "Use of uninitialized value in split" when run in "perl -w" mode
Date: Wed, 4 Jul 2012 10:26:06 +0200
To: bug-Text-TabularDisplay [...] rt.cpan.org
From: Patrick <patrick.kuijvenhoven [...] gmail.com>
Version 1.31 contains a regression. Please take a look at my comment at https://github.com/dlc/text--tabulardisplay/commit/4b9bd105d9ebaf8ac838e8e993216e4b56d85683#commitcomment-1537151 On Thu, Jun 21, 2012 at 5:52 PM, Darren Chamberlain via RT < bug-Text-TabularDisplay@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=77944 > > > I've fixed this in https://github.com/dlc/text-- > tabulardisplay/commit/4b9bd105d9ebaf8ac838e8e993216e4b56d85683#TabularDisplay.pm > . > I'll be uploading version 1.31 soon. >