E
eight02645999
hi
i have a mail log file to split which has these fields
<date><spaces><time><spaces><GMT><spaces><transaction><spaces><message>
i tried to write it like this
....
while ( my $line = <$LOG> )
{
my ($date,$time,$gmt,$tran,$msg) = split('\s+' , $line);
.....
}
but the problem is in the <message>, there are also spaces. For example
2005/06/01 18:30:13 GMT+06:00 6F0C71E6 Forwarding mail for blahblah
so my $msg will contain "Forwarding" only. What is a better way to
split and
get the whole message into $msg?
thanks for any advice.
i have a mail log file to split which has these fields
<date><spaces><time><spaces><GMT><spaces><transaction><spaces><message>
i tried to write it like this
....
while ( my $line = <$LOG> )
{
my ($date,$time,$gmt,$tran,$msg) = split('\s+' , $line);
.....
}
but the problem is in the <message>, there are also spaces. For example
2005/06/01 18:30:13 GMT+06:00 6F0C71E6 Forwarding mail for blahblah
so my $msg will contain "Forwarding" only. What is a better way to
split and
get the whole message into $msg?
thanks for any advice.