in reply to Re: Why can't some of my modules do log output to a file?
in thread Why can't some of my modules do log output to a file?

Hi, thanks for your reply. I don't really understand what the Useqq option does for me in this instance? Are you assuming there might be problematic characters in the output causing this unusual behaviour?

Replies are listed 'Best First'.
Re^3: Why can't some of my modules do log output to a file?
by haukex (Archbishop) on Oct 12, 2022 at 05:40 UTC
    I don't really understand what the Useqq option does for me in this instance?

    Without Useqq, the module will output some characters literally, which may cause garbled output and could in theory even cause it to appear that certain log messages weren't being output, e.g. when showing a logfile with cat or tail.

    $ perl -MData::Dumper -e 'print Dumper("Hello,\rWorld!")' World!';'Hello, $ perl -MData::Dumper -e '$Data::Dumper::Useqq=1; print Dumper("Hello, +\rWorld!")' $VAR1 = "Hello,\rWorld!";
    Are you assuming there might be problematic characters in the output causing this unusual behaviour?

    Actually, I think those characters are the least likely explanation, but I wanted to have all bases covered. I'd be much more curious about the results of my other suggestions?

Re^3: Why can't some of my modules do log output to a file?
by AnomalousMonk (Archbishop) on Oct 12, 2022 at 04:13 UTC
    ... what the Useqq option does for me ... Are you assuming there might be problematic characters in the output ...

    Taking the liberty of responding for haukex: I don't think problematic characters are necessarily assumed to be present, but if they're there, Useqq will help you see them. See also Data::Dump.


    Give a man a fish:  <%-{-{-{-<