in reply to Mistakenly Believing split is using @_
if you don't set the value of split to an array, such as my @chars=split '', "I am a string";, then it's set to @_.
works fine. the scoping should eliminate the @chars var when you're done with it.{ print scalar(my @chars=(split('', "I am a string"))) . "\n"; }
although, you might try length as in
print length("I am a string"), "\n";
~Particle
|
|---|