in reply to Counting keys in a referenced hash

Hi Logan, your second thing what you consider to be a hashref isn't really one. You have to create a anonymous hashref with these curly brackets "{". This is what you mean:
$test = { test1 => '1', test2 => '2', test3 => '3'};

Replies are listed 'Best First'.
Re^2: Counting keys in a referenced hash
by logie17 (Friar) on Dec 02, 2006 at 20:16 UTC
    Thank you everyone. All I have to say is "Doh!". Thanks again

    Logan
      Actually there is something else you could say, and that's that you will heed the advice to always 'use strict' and 'use warnings'.