foreach(@lines) { print "yahoo!" if ( index( $_, '#' ) == 0 ); } [download]
In reply to Re^2: Regex to check for beginning character by Nkuvu in thread Regex to check for beginning character by Anonymous Monk