in reply to Negating a leading whitespace
Where XY are the two characters you want. Alternatively, if the whitespace requirement for exclusion is at the beginning of the line you can just do:if ( $line =~ /[^\s]XY/ ) { ... }
while ( <FILE> ) { next if /^\s/; # process lines without leading whitespace here ... }
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Negating a leading whitespace
by Roy Johnson (Monsignor) on Jul 05, 2005 at 15:23 UTC | |
|
Re^2: Negating a leading whitespace
by davidrw (Prior) on Jul 05, 2005 at 15:30 UTC |