in reply to reverse a string in place
my $s = "abcdefgh";
$s .= substr $s, length($s) - 2 * $_, 1 for 1 .. length($s) - 1;# Add
+the reversed string.
substr $s, 0, length($s) / 2, q(); # Remo
+ve the original string.
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (329 votes). Check out past polls.