For simple matches anchored to a non-varying character position, substr may be a little quicker, but at the cost of being a little less Perlish. In the end, it probably doesn't matter which you use.while ( <FILE> ) { next if substr( $_, 0, 1 ) eq '#'; }
Dave
In reply to Re: skipping lines
by davido
in thread skipping lines
by wolverina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |