in reply to Whats happening to my hash ref.

if Dumper outputs what you state above, and the loop over keys %$var outputs the array refs, then either your perl is broken or you're not posting your complete code.
it's always recommendable to post a full code example with its output copied and pasted and not retyped.
i think you retyped because you say this is the output from Dumper:
# 'STOP'=>[ # 'G234_STOP'' # '60' # ]
can't be, there's two apostrophes and a missing comma.
here's my complete example:
tina@lux:~> perl -wle' sub test { my %vars; $vars{DATE} = ["G234_DATE","ZERO"]; $vars{STOP} = ["G234_STOP","60"]; return \%vars; } my $vars = test(); foreach $key (keys(%$vars)){ print $key; }' STOP DATE tina@lux:~>

Replies are listed 'Best First'.
Re: Re: Whats happening to my hash ref.
by Scarborough (Hermit) on Jun 01, 2004 at 14:21 UTC
    Thankyou Tinita, Your answer prompted me to look further then the end of my nose and look at my own work a little more objectively and found the problem lay entirely with me. I have fixed the problem and all is well now.
    Thanks for your help a very grateful Monk.