in reply to RegEx needed
1) yes, the float match is rough. 2) I haven't run this - I'm not on my box. I can't remember array slice assignment off hand.$line =~ /(0x\d{7}) # octal \s+ # space of some kind (.*) # anything (greedy) \s+ # space of some kind (0x\d{7}) # octal \s+ # space of some kind (\d+\.?\d?\.) # float, followed by a period \s+ # space of some kind (\d+\.?\d?) # float /x; # allow these comments @array[0..4] = ($1,$2,$3,$4,$5);
But I'm sure you get the idea.
.02
cLive ;-)
--
|
|---|