Fleur Junier wrote: > how do I get a character at position index out of a string like c++ > char > * string[index] ?
The nearest equivalent is substr: my $string = 'Mozzarella'; my $i = 6; my $char = substr $string, $i, 1; # $char eq 'e' which is subtly different from C's string[i] in that $char is not a character (as Perl doesn't have such things) but a one-character string. HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]