Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^2: Hash of arrays

by perlloz (Initiate)
on Dec 28, 2012 at 10:20 UTC ( #1010683=note: print w/replies, xml ) Need Help??

in reply to Re: Hash of arrays
in thread Hash of arrays

Thanks, I was using %newgrouphash = undefined; to declare my hash instead of %newgrouphash = (); That is where the extra key was coming from. forever learning - thanks for the help

Replies are listed 'Best First'.
Re^3: Hash of arrays
by NetWallah (Canon) on Dec 28, 2012 at 18:54 UTC
    If you had
    use strict; use warnings;
    at the top of your code, it would have pointed out your problem, with the message:
    Use of uninitialized value in list assignment at ..
    (This comes from 'use warnings;')

    There is overwhelming agreement here that those two directives should be at the top of EVERY script you write, and you have just experienced an instance where it could have saved days of questioning and struggle.

                 "By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest."           -Confucius

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010683]
[choroba]: You can also try DBD::MariaDB instead of MySQL
[choroba]: it's not on CPAN yet, unfortunately, so you have to install manually from github
[Spenser]: Thanks. I tried DBD::MariaDB just now. It can't find that module.
[Spenser]: oh, I'll check github

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2018-03-17 13:00 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (224 votes). Check out past polls.