I am newbie learning perl. The question I have is how do I make sure that if the mine is not set, after the while, I need to send an error or exception?
while (my ($a, $b) = each %$him) {
if (($c->{$d}) eq $a) {
$mine = $b;
}
}
Here I have to return error if $mine is not set.
That whole
whileloops is unnecessary. You just needYou might prefer
or