|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Router Backup.pl failing (operator error no doubt)by kcott (Parson) |
| on Feb 15, 2013 at 04:14 UTC ( #1018837=note: print w/ replies, xml ) | Need Help?? |
|
G'day rmagin, 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:
-- Ken
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||