|more useful options|
Re: Router Backup.pl failing (operator error no doubt)by kcott (Abbot)
|on Feb 15, 2013 at 04:14 UTC||Need Help??|
Welcome to the monastery.
The message indicating a potential "runaway multi-line" is due to the chop() statement:
\Q escape sequences are terminated with \E (not another \Q) and are applied to strings (i.e. they're not standalone operators):
Take a look at quotemeta for a more complete description.
toolic may well be correct in suggesting you want `...` instead of \Q...\Q; however, you may also want to escape the ASCII non-"word" characters in the return value - something like this (untested) might do what you want: