Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^4: Reading Install type config file into hash

by tmurnane (Novice)
on Aug 10, 2012 at 13:31 UTC ( #986744=note: print w/replies, xml ) Need Help??

in reply to Re^3: Reading Install type config file into hash
in thread Reading Install type config file into hash

Thank you so much - that is exactly what I am looking for.

I do need it ordered because I'm creating a Perl Tk UI that will read this setup file, allow users to modify it and write it back out...basically, creating a Suite installer outside of InstallShield. I'm thinking of using a NoteBook where the first tab will have a list of Products and Features with CheckBoxes. The other tabs will have the "Property = Value" info in a label Textbox fashion so they can change the values and write out a new setup.ini.

I will also have another script that can be run from the UI and cmdline for users without UI capabilities, that will just read the setup.ini, build the commands to run each install silently and run them...where obviously, order does not matter.

Still have to figure that one out - when running outside the UI, how do I determine what to install. I May have to add a Product="y|n", Feature="y|n" to the setup.ini file.

Thanks a bunch - I knew to use Arrays of Hashes but couldn't conceptualize it visually.

Boy do I have a lot to learn - who'd thunk to use an || in a Hash Key. Great stuff.

If anyone has a better all means, let me know.

  • Comment on Re^4: Reading Install type config file into hash

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986744]
[liz]: ^10 is just a short way of saying 0..^10, which is a short way of saying 0..9
[liz]: ^N is a very common idiom in Perl 6 to indicate "N times"
[liz]: The ^ indicates "exclude endpoint from range"

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2018-07-16 17:03 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (345 votes). Check out past polls.