in reply to Whats happening to my hash ref.
can't be, there's two apostrophes and a missing comma.# 'STOP'=>[ # 'G234_STOP'' # '60' # ]
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 |