/* No point in studying a zero length string, and not safe to study
anything that doesn't appear to be a simple scalar (and hence might
change between now and when the regexp engine runs without our set
- magic ever running, such as a reference to an object with overloaded
+ magic ever running) such as a reference to an object with overloaded
stringification. */
RETPUSHNO;
}
is( index( $x, 'n' ), 0, qq{"next" contains "n" at pos 0} );
# The letter "t" is in both, but in different positions
- ok( $x =~ /t/, qq{"next" matches /x/} );
- is( index( $x, 't' ), 3, qq{"next" contains "x" at pos 3} );
+ ok( $x =~ /t/, qq{"next" matches /t/} );
+ is( index( $x, 't' ), 3, qq{"next" contains "t" at pos 3} );
}