in reply to Do values from string exist within array?
Do you actually have a structure that looks like this?
my %hash = ( 'GrpID' => [ 123, 456 ] );That would be a hash with a single key, whose value is an arrayref. You could find out how many values were present by looking at the value of scalar @{$hash{'GrpID'}} -- in this example, the value should be 2, meaning there are multiple values.
And you'd put values into that hash entry with
I'd recommend you pop into the Perl debugger and try this stuff out. The debugger's a great place to try out Perl constructs.push ( @{$hash{'GrpID'}}, 789 );
|
---|
In Section
Seekers of Perl Wisdom