FAQ
Hallo,

in an older version of DBI (i think it was 1.43) there was an warning
in line 1317.
"Use of uninitialized value in concatencation (.) or string at..."

in the 1.47 Version the bug is fixed in an (for me) unclean way:

my $key = do{ local $^W; # silence undef warnings
...
}

if fixed that problem in another way with map.
I think it is the better way to do it.

my $key = join "~~", $dsn, $user||'', $auth||'', map { defined $_ ? $_
: '' } $attr ? ( @attr_keys, @{$attr}{@attr_keys} ) : ();

My patch is attached.

Regardz Jens Hinrichs

Search Discussions

  • Tim Bunce at Mar 7, 2005 at 4:31 pm

    On Mon, Mar 07, 2005 at 01:24:43PM +0100, Jens Hinrichs wrote:
    Hallo,

    in an older version of DBI (i think it was 1.43) there was an warning
    in line 1317.
    "Use of uninitialized value in concatencation (.) or string at..."

    in the 1.47 Version the bug is fixed in an (for me) unclean way:

    my $key = do{ local $^W; # silence undef warnings
    ...
    }
    Counts as simple, effective, sufficient, and efficient in my book :)

    Tim.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdbi-dev @
categoriesperl
postedMar 7, '05 at 12:24p
activeMar 7, '05 at 4:31p
posts2
users2
websitedbi.perl.org

2 users in discussion

Tim Bunce: 1 post Jens Hinrichs: 1 post

People

Translate

site design / logo © 2019 Grokbase