ciryon has asked for the wisdom of the Perl Monks concerning the following question:
As you can see it's not allways one key and one value per line. If the key is too long it'll have the value on a new line. I'm going through each line withHandle_Bogus_Timeout 36 TimerList 4 ResetOneHundredmSecondTimerReport 8 ResetTimer 16 SetOneHundredmSecondTimer 12 SetTimer 16
to check if it's valid, else it should do something to take care of the incorrect lines. Suggestions?if(/(\S+)\s+(\d+)/)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Key, newline, value problem
by Happy-the-monk (Canon) on Jun 22, 2004 at 08:50 UTC | |
|
Re: Key, newline, value problem
by BrowserUk (Patriarch) on Jun 22, 2004 at 09:21 UTC | |
|
Re: Key, newline, value problem
by Zaxo (Archbishop) on Jun 22, 2004 at 08:50 UTC | |
|
Re: Key, newline, value problem
by Hena (Friar) on Jun 22, 2004 at 08:51 UTC |