A
anitawa
Hi,
I am new to perl and trying to parse a text file into a hash table.
Could someone point me in the right direction?
My text file:
start -days 1,2,3,4,5 -month 2,4,8,10 -message "I want you to start
this" -running -group "rungroup"
Hash table should look like this:
myhash(start) = ""
myhash(days) = 1,2,3,4,5
myhashh(month) = 2,4,8,10
myhash(message) = "I want you to start this"
myhash(running) = ""
myhash(group) = "rungroup"
Thanks
I am new to perl and trying to parse a text file into a hash table.
Could someone point me in the right direction?
My text file:
start -days 1,2,3,4,5 -month 2,4,8,10 -message "I want you to start
this" -running -group "rungroup"
Hash table should look like this:
myhash(start) = ""
myhash(days) = 1,2,3,4,5
myhashh(month) = 2,4,8,10
myhash(message) = "I want you to start this"
myhash(running) = ""
myhash(group) = "rungroup"
Thanks