The answer to this question is almost always yes and there is almost always more than one way to do it. "There is more than one way to do it" is one of Perl's mottos. In this case, I will provide a straight forward answer.
my $str = '1029576843'; my @f = split //, $str; print $f[ 4 ]; # 5
Cheers - L~R
In reply to Re: How to split a string
by Limbic~Region
in thread How to split a string
by Red_Dragon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |