I'm no expert myself, so I can't comment on the perl, but if as you say the 
"SunOS" is at the start of the line.
> reboots which always start with the string SunOS and, if found, return

You may want to put a ^ in your regex to fix this. So,
>         if ($_ =~ /SunOS/)
becomes:
        if ($_ =~ /^SunOS/)
Otherwise it'll match if that occurs anywhere in the line. That may never be the case, 
but I don't know many answers so I have to leap at anything I do know ;)

--
John


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to