I am bitten by this little inconsistent debugger behavior. The quotemeta()
function seems to behave differently when invoke under perl -d
$ perl -e 'print quotemeta("/a/b/c"),"\n"'
Output is \/a\/b\/c
, which is correct and as documented in perldoc -f quotemeta
.
Now, when under debugger, the output becomes \\/a\\/b\\/c
. I thought some core module I am using was redefining the function though as tested, it seems the behavior only occurs when under the debugger. Calling CORE::quotemeta()
returns the same output.
Can somebody enlighten me?
Thanks!