I have a file that looks like this:
A:B:C
G:P:T
K:M:Q
...
I have loaded the file in an array @letters.
I need to retrieve each letter without the : and pass it as a parameter to another script that I call.
so
/bin/kish -x /home/whatever/testscript $letter[0 1] $letter[0 2] $letter[0 3]
then
/bin/kish -x /home/whatever/testscript $letter[1 1] $letter[1 2] $letter[1 3]
until end of array.
Any suggestions?
split(":")? perldocsplitis a string. Usesplit /:/