in reply to Re^4: more fun w/ HASh ref's
in thread more fun w/ HASh ref's
$val =~ s/ *$//g; # Strip trailing white space from value $config{'db'}{"$key"} = $val; $config{"$key"} = $val;
When I use $config{'db_name'} it works. When I use the $config{'db'}{'db_name'}, it gives me the HASH ref error. Seems like that string substitution ought to clean out that extraneous space. I'm not sure why its not.
-- Hugh
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: more fun w/ HASh ref's
by dragonchild (Archbishop) on Nov 27, 2005 at 00:33 UTC | |
by hesco (Deacon) on Nov 27, 2005 at 02:07 UTC |