How do I access specific character positions in a scalar string? In case it makes any difference, I specifically want to test the zeroth character. Something like the following.
my $str = "abc";
if ($str[0] == '#')
{
do something...
}
Thank you in advance!
Chuck
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
