in reply to Reading hash

to keep the right order I am using array inside hash

No you're not. Your hash contains junk. Perhaps you were thinking of the following:
%CFG = ( DES => [ "cp file1 file2", "rm file1", "vi file2", ], );

Replies are listed 'Best First'.
Re^2: Reading hash
by Sun751 (Beadle) on Jul 03, 2009 at 03:49 UTC
    I have updated my script, hope its better now. I want to be more logical so I am trying to use hash in my configuration file.
      If you want to be logical, you should consider pre-existing solution, like Apache Ant

        oh! "DES" is description. (yay guessing games!) You have a HoA, but you want a AoH.

        my @commands = ( { DES => "Copy", CMD => "cp file1 file2'Hello'" }, { DES => "Remove", CMD => "rm file1" }, { DES => "View", CMD => "vi file1" }, );