On 2/20/06, Bowen, Bruce <[EMAIL PROTECTED]> wrote: > Would $a = index($state, /\n); then be the correct format to find the end of > the line or a carriage return? Because that gives errors. I'm getting the > impression you can use \n with some commands and not others. Just > that it doesn't seem to be documented anywhere.
Could you be conflating the syntax of the m// operator with general quoting? See the "Quote and Quote-like Operators" section in the perlop manpage for information about when you can use \n to mean a newline character. (Mostly, that's anywhere quoted, except by single quotes or qw{}.) The same manpage has information on m//. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>