in reply to Re^2: The Backslash Challenge
in thread The Backslash Challenge

> cont:

A backslash at EOL marks a multiline statement in DB. I had a trailing whitespaces to avoid this, but the C&P from cmd.exe erased them. :( Fixed now!

> And if I run it in a script instead, the output is _, not \ :-o

both lines? lemme check...

...

Argh! Seems that the context of the debugger is initializing a "crucial thing" which can't be taken for granted :(

$\ is not in the symbol table til it's first set

update

yes a use DB; at the start of the script is "fixing" it.

Actually that could be a source of a Heisenbug.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^4: The Backslash Challenge
by choroba (Cardinal) on Mar 25, 2021 at 11:27 UTC
    > yes a use DB; at the start of the script is "fixing" it.

    Not only the DB. English works, too :-o

    qq\@{[do{ require English; grep $_ gt "["&&${_}lt"]", keys %:: }]}\

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]