in reply to Re: How to keep the order of keys in hash
in thread How to keep the order of keys in hash

Hello Christoforo,

Once more, you are absolutely right. If you do not mind can you point me out to the correct direction to understand what is the array that is loaded at @_. Because it dose not make sense to me at least so far why the sort keys %hash was not working correctly.

Never the less thank you again your time and effort.

Seeking for Perl wisdom...on the process...not there...yet!

Replies are listed 'Best First'.
Re^3: How to keep the order of keys in hash
by Cristoforo (Curate) on Jul 09, 2014 at 20:54 UTC
    @_ is initialized when you call the function with the parameter @ARGV.

    Instead of using @_, you could use @ARGV if you wanted to.

      Hmmm it makes absolute sense thinking about it. By initializing the foreach function at the beginning and passing the ARGV arguments to it it contains in the correct sequence the keys. I did not even think about it for a second.

      Thanks again for your assistance.

      Seeking for Perl wisdom...on the process...not there...yet!