in reply to Re: arrays, hashes, dereferencing confusion - need help
in thread arrays, hashes, dereferencing confusion - need help

I did look at the line - I just didn't know what to do about what it said!

Easy when you know how, eh?

Thanks!

  • Comment on Re^2: arrays, hashes, dereferencing confusion - need help

Replies are listed 'Best First'.
Re^3: arrays, hashes, dereferencing confusion - need help
by Anonymous Monk on Mar 21, 2010 at 05:23 UTC
    Its also easy when you don't know :)

    perl -Mdiagnostics -le "my %foo = 1 "

    Odd number of elements in hash assignment at -e line 1 (#1)
    (W misc) You specified an odd number of elements to initialize a hash, which is odd, because hashes come in key/value pairs.