The "Extract subroutine" refactoring mishandles
single-quoted strings. In the generated subroutine
they are all backslashed.
This:
my @bar = ();
push(@bar, 'boo');
------------
Is turned into this:
my @bar = ();
my () = extracted (\@bar);
sub extracted {
my $bar = shift;
push(
@$bar, \'boo\');
return ();
}
---------------
Note also that the "return ()" statement is unnecessary.
Please fix this the bug is driving me crazy.
Reproduced in 0.7.0.
Fix merged on github and will be part of the upcoming 0.7.1 release.