in reply to Telnet Output

jmutton:

If you just need those SNR values, you'd first find the line(s) that have the values, such as by recognizing the 'SNR:' string:

@lines = grep { /^SNR:/ } @lines;

Then you could split the line on whitespace, and keep the second and third columns:

for my $line (@lines) { my ($SNR, $val1, $val2, @rest) = split /\s+/,$line; print "SNR value 1:$val1, value 2:$val2\n"; }

Update: Added missing '/' in regex. (Noticed by Laurent_R)

...roboticus

When your only tool is a hammer, all problems look like your thumb.