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

@_ is initialized when you call the function with the parameter @ARGV.

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

Replies are listed 'Best First'.
Re^4: How to keep the order of keys in hash
by thanos1983 (Parson) on Jul 09, 2014 at 22:11 UTC

    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!