in reply to Re: Reading hash
in thread Reading hash

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.

Replies are listed 'Best First'.
Re^3: Reading hash
by Anonymous Monk on Jul 03, 2009 at 04:07 UTC
    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" }, );