Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

$key from hash as file $value as content in file

Hi all,

Im not quite sure if it`s possible to do but it will be good if someone can give me some way to how solve this. so i have output like:

$output = {"key1"=>"first value", "key2"=>"second value", "key3"=>"third value"}

I want to have on each $key file which is stored in /opt/$key.conf content with $value.

to be more clear short example : there will be 3 files
1 /opt/key1.conf with first value

2 /opt/key2.conf with second value

3 /opt/key3.conf with third value

Regards Karen