in reply to Re: Need help figuring out how to order/eval the numbers
in thread Need help figuring out how to order/eval the numbers
thank you...I will follow the FH open and close within their scope...I liked that and clear to me now and looks elegant.also, I like your way of IF structures...mine still looks too childish
I have a few question on somethings you did here, please help me understand. I am reading on this now too.
what is the ? do here?
my $fh = defined $hash{$ita}[0] && defined $hash{$ita}[1] ? $out : $out1;
hmm, what is in the sort_italian() at start? and why () and not square brackets?
confused on hash_ref which uses square and now parenthesis
for my $ita (sort { sort_italian() } keys %hash)
map...nice function, I'm geeking out on map right now. but what is the () mean? is this NOT a hash_ref then??as per your comment, $_ is the value of the keys being check for UNDEF values , I understand that but not ()
print $fh "$ita => ", join(',', map { $_ // () } @{ $hash{$ita} }), "\n";
I have problems following the error checking. what is this statement saying here? return $numbers{$a} <=> $numbers{$b};
|
|---|