Good day;

I have the following strings:

>  root    Wed Aug 22 04:44:59 2001     DLs

<snip>

>I want three things:
>
>user, the entire date, the state.

What is separating these attributes? A constant number of spaces, or a tab? 
If so, it might be easier to use the "split" function.

($user, $date, $state) = split (/\t/, $line);           ## or if, say, 4 
spaces are separating them, change \t to \s{4}

HTH


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

Reply via email to