Hi CaKiwi,
I've also tried this & it works to a point, however if I elaborate on it & do
if ($0 ~ reg && /78/)
it doesn't return anything, even thought this works on the command line ( when I insert the values returned by print reg... do you know why this is?