I have followin code in one legacy script:
while (<FPTR>) # While still input lines in the file...
{
if($_ =~ /\x1b&d@
/)
{
$aa=$_;
$aa =~ s/\x1b&d@
/
\x1b&d@/;
print STDOUT $aa;
}
...
}
Could you please explain - what doe this code do and how to replace it with correct code? I do not like that there is a line feed in "if" and "=~". Is it possible to change this code?