in reply to Re: Hashing uninitialized values when no value returned from DBI sql select
in thread Hashing uninitialized values when no value returned from DBI sql select

I thought I had 5.1, but I must not, because
$myhash{$val_1} = $val_2 // '';
produces
Illegal division by zero
on my system.

Replies are listed 'Best First'.
Re^3: Hashing uninitialized values when no value returned from DBI sql select
by FunkyMonk (Bishop) on Feb 27, 2008 at 23:48 UTC
    I thought I had 5.1, but I must not, because
    5.10?

    Well, what does perl -v say?

      Yep - 5.8.8
Re^3: Hashing uninitialized values when no value returned from DBI sql select
by kyle (Abbot) on Feb 27, 2008 at 21:01 UTC

    With Perl 5.8.8:

    $ perl -e '$v2=undef;$v1 = $v2 // "";' Search pattern not terminated at -e line 1. $ perl -e '$v2=undef;$v1 = $v2 / "";' Illegal division by zero at -e line 1.