Hi all,
i have a problem to split data of a file.
The data has the following structure :
key=value
key2=value2
....
When reading this file, there's no problem, but if I want to split the
lines...
This is the sourcecode:
open(file, "< foo.bar");
@myArray = <file>;
close(file);
foreach (@myArray) {($1, $2, $3) = split /=/; $list{"$1"}=$3;}
it seems to work, but if I add this line:
foreach $item (keys(%list)) {print "$item $list{$item}\n";}
it does not print anything.
please help!!!
Karsten
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]