in reply to Re: Cable modem status
in thread Cable modem status
When I wrote it, it was a much simpler one line, no 'x' expression with spaces instead of '\s' like so:$content =~ m{ Frequency(\d+\sHz)\s Signal\sTo\sNoise\sRatio([\d.]+\sdB)\s Power\sLevel([\d.-]+\sdBmV) }xi or My_Die('content failed!');
But the line was too long to fit the line length on Monks and wrapped (like here). So I massaged it to fit within the column limit, but I think the new format is much less readable than the original. Any ideas on how to improve that?$content =~ m/Frequency(\d+ Hz) Signal To Noise Ratio([\d.]+ dB) Power + Level([\d.-]+ dBmV)/i or My_Die('content failed!');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Cable modem status
by GrandFather (Saint) on Feb 17, 2007 at 03:27 UTC | |
by ruzam (Curate) on Feb 17, 2007 at 03:46 UTC |