in reply to Weird behaviour with match-time code evaluation and backtracking
You could use:my @chars = split( //, $in ); foreach my $char (@chars) { $check += ord($char); }
But to your question, I don't know. I think I read an explanation once by Dominus, on the mailing list to his superb book Higher Order Perl (which I highly recomend!)$check += ord $_ for split //, $in;
Edit: In light of BrowserUk's response below, it's unlikely that this is related to the explanation I mentioned above. Sorry for confusing...
|
|---|