in reply to Getting Rid of Newlines Between Strings
if ($cg =~ /^$|NA/) {
It tells Perl to skip the line if it starts (^) and ends ($) immediately, or (|) contains NA.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting Rid of Newlines Between Strings
by marinersk (Priest) on Aug 13, 2013 at 06:39 UTC | |
|
Re^2: Getting Rid of Newlines Between Strings
by ccelt09 (Sexton) on Aug 13, 2013 at 00:00 UTC |