I've just started with perl and have 2 questions:-
Ques 1) If someone would kindly show me the code to split the following into
the special variables $1 $2 $3 upto $9. I have spent the best part of today
on it and I can separate the 08:45:50 and separate the string if there were
','s in it - which I do not want. I would like to place 'Mar' in $1, 17 in
$2, 08:48:50 in $3 and so on.

$line = "Mar 17 08:48:50 msasa pppd[6404]: Connect: ppp0 <--> /dev/ttyS1"

Ques 2) Where in the linux documentation do I find an example?  I have
RH7.1.


Many thanks

Pat




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

Reply via email to