in reply to object creation

There might be a module "DB" already installed on your Perl. Check with the following code which one you "use":

use DB; print $INC{"DB.pm"};

Replies are listed 'Best First'.
Re^2: object creation
by LanX (Saint) on May 22, 2013 at 15:26 UTC
    > There might be a module "DB" already installed on your Perl.

    sure it belongs to the perldebugger and is available for every Perl

    so better don't try to run this code with -d =)

    Cheers Rolf

    ( addicted to the Perl Programming Language)

    update
    lanx@nc10-ubuntu:~$ corelist DB DB was first released with perl 5.006

      Runs fine for me:

      C:\strawberry-perl-5.16.3.1-64bit-portable\scripts>perl -d -e "use DB; + print $INC{'DB.pm'};" Loading DB routines from perl5db.pl version 1.37 Editor support available. Enter h or 'h h' for help, or 'perldoc perldebug' for more help. C:/strawberry-perl-5.16.3.1-64bit-portable/perl/lib/DB.pm
        Sorry I was talking about the OP's project, not your snippet.

        Manipulating DB:: means sabotaging the debugger, which is activated with '-d'.

        Cheers Rolf

        ( addicted to the Perl Programming Language)