in reply to Re: Perl modifying output of an array to remove blank lines
in thread Perl modifying output of an array to remove blank lines
this didn't seem to have any effect i used it like this
my @Goodlines = $line =~ m/(^\S{1}\/\S{1})\s+\S{7}\s+\S{1}\s+(\-\S{3}\ +.\S{4}\sdBm)\s(\-\S{3}\.\S{4}\sdBm)/g; #this string filters the for +values i want @Goodlines = grep { $_ !~ /^(?:\s+|)$/ } @Goodlines;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl modifying output of an array to remove blank lines
by AnomalousMonk (Archbishop) on Oct 08, 2015 at 22:54 UTC | |
by hippo (Archbishop) on Oct 08, 2015 at 23:37 UTC | |
by stevieb (Canon) on Oct 08, 2015 at 23:58 UTC |