I was bitten by this little inconsistent debugger. The quotemeta() function seems to behave differently when called in perl -d
$ perl -e 'print quotemeta("/a/b/c"),"\n"'
The output is \/a\/b\/c , which is correct and as described in perldoc -f quotemeta .
Now that under the debugger the output will be \\/a\\/b\\/c . I thought that some main module that I use overrides the function, although, as verified, it seems that the behavior only happens when under the debugger. A call to CORE::quotemeta() returns the same result.
Can someone enlighten me?
Thanks!
source share