On Jun 2, Chas Owens said:

>On 02 Jun 2001 01:19:35 -0700, Paul Fontenot wrote:
>> It is a system logfile. That is the way syslog is dumping it into the log.
>
>Can you give an example of a line from each month?

The file has two spaces before the 10th of every month.  That's more like
1/3 of the time than 1/2, but still.

It's safest just to split on ' ', the magical split.

  @fields = split ' ', $string;

What that does is ignore leading and trailing whitespace, and the split on
one or more pieces of any whitespace.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734
**      Manning Publications, Co, is publishing my Perl Regex book      **

Reply via email to