my $first_char = (split //, $string)[0]; [download]
In reply to Re^2: String extraction by FunkyMonk in thread String extraction by matthxx