in reply to Split line with corresponding columns and values
That won't quite work with the above line, because it has a prepending '\' so your keys and values are out of sync, but it's a start...my %hash=split /\\/, $line; print $hash{mesh_0};
If you really want the variable named like $player_0, $mesh_0 etc., then you can mess around with symbolic references (but only if you know why they are bad...) I think that a hash ought to do fine though!
Cheerio!
Osfameron
|
|---|