in reply to Regex to check for beginning character
That's much faster than using a regex for this.foreach(@lines) { if ( index( $_, '#' ) == 0 ) { print "yahoo!"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex to check for beginning character
by Nkuvu (Priest) on Mar 05, 2004 at 16:39 UTC | |
by Anonymous Monk on Mar 05, 2004 at 20:58 UTC |