This is probably off topic but I'm hoping only slightly so. I have a
script that may select zero or more rows. (I asked here and got some help
with checking the count and that works quite nice.)
If there are no rows returned do one thing, if many rows are returned
offer a selection list, and finally if there is only one row display the
results.
The problem I'm having is how to do in a one-liner the equivalent of this.
Getting the the $domainname_key out of the arrayref $domain_array.
foreach my $row (@$domain_array) {
($domainname_key, $jnk) = @$row;
)
As usual any and all help is appreciated.
Best of the seasons to all,
Rod
--
"Open Source Software - Sometimes you get more than you paid for..."