in reply to Re^2: Reg Expin thread Reg Exp
@arr=split(/ /,$test);
... and count the size of the array
$size=scalar(@arr);
if its 4, arr[2]is the OS, otherwise no OS was specified