Thanks, but it IS set. And o pager? reports |less which works OK from the shell.

Ah-ha! I just ran a test to check the behaviour and |h h worked! However, that was on a normal perl script. Trying it again on the (cgi) script I was working on and no output appeared.

Not a problem now, but I'd like to understand what's happening. So, cutting it down to the simplest, I have two files 'test.pl' is the normal script and 'sql.pl' is the cgi one. They both comprise

#!/usr/bin/perl
use strict;
use warnings;

The both sit in /srv/www/cgi-bin/ (which SuSE 8.1 has handled by mod-perl, but perl wouldn't know that, would it?). The difference is that sql.pl has been cut down from the cgi script that wouldn't page and test.pl has been copied across from /usr/local/bin. Yet

perl -d sql.pl
...
DB<1> |h h

still produces no output, while the same treatment of test.pl pages the help OK. If both files are copied to another directory, the problem disappears.

How come perl is picky about that one file? Did the CGI module or mod_perl do something to the output stream? I know mod_perl produces curious effects, but surely I'm not using mod_perl from the perl debugger, especially once 'use CGI' etc. are removed?

CGI programming is certainly different from what I expected. If it means anything, fatalsToBrowser wouldn't do anything either.


In reply to Re: Re: No debug pager by cpwillmot
in thread No debug pager by cpwillmot

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.