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};


In reply to Re^2: Need help figuring out how to order/eval the numbers by perlynewby
in thread Need help figuring out how to order/eval the numbers by perlynewby

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.