On 2/20/06, Bowen, Bruce <[EMAIL PROTECTED]> wrote: > My question to the group is why would this line recognize that carriage > return.
> @lines = split /\n/, <STATE>; > and this not recognize the same character; > $a = index($state, "/\n"); The second parameter you're passing to index() is a two-character string. Is that your bug? (Are you also setting $/ to a non-default value? Else I don't understand your intent.) Hope this helps! --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>
