in reply to Database MySQL Perl

When the question is, "What is in this variable?" the answer is Data::Dumper (or one of its alternatives from CPAN). For anything more complex than a single scalar value, it's typically easier to type the two lines below than to create a loop or recursive function to print the thing. (Typically I 'use Data::Dumper' in all my programs during development, so I only need to type the second line to quickly dump a variable.)

use Data::Dumper; print Dumper @interval;

Aaron B.
My Woefully Neglected Blog, where I occasionally mention Perl.

Replies are listed 'Best First'.
Re^2: Database MySQL Perl
by GrandFather (Saint) on Feb 27, 2012 at 21:20 UTC

    Data::Dumper is great, but for development I find it much more efficient to set a breakpoint (single click) then hover over the variable in question to see its content in a popup tool tip. YMMV depending on the IDE you use.

    True laziness is hard work
Re^2: Database MySQL Perl
by akagrawal3 (Beadle) on Feb 29, 2012 at 07:29 UTC
    Oh that was worth knowing.. :)