in reply to seek and replace for exceptional characters

Use quotemeta:
my $A= quotemeta '+#';