"...something like strinc"
C:\>perl -E "sub strinc {
$strToBeInc = shift;
$strToBeInc++;
return $strToBeInc;
}
my $str='a';
my $foo = strinc($str);
say $foo;"
b
While I agree with what I think is one of moritz' points -- namely, that P5 is going to have to break backward-compat at some point... or stop improving and die -- I don't think we're there, yet, nor do I see how replicating the code behind ++ to provide a (duplicative) strinc is a plus, unless it allows removing a lot of cruft from ++.
If you didn't program your executable by toggling in binary, it wasn't really programming!