Corion, ^Z does more than just mess up reading from binary files. Consider the following code (I know it's nonsense, but bear with me):
#/usr/bin/perl use CGI; my $query = new CGI; print "Where did this line go?\n";
That code will work fine on linux, but in Active State Perl on my Windows box, that last line will never appear if I run it from the command line (admittedly, this might happen in all WinPerl versions). You can imagine my fun in debugging that.

What's going on is that when I instantiate a new CGI object, I have to enter name=value pairs in offline mode. Then I press ^Z to stop that. Nothing else prints until I print a newline! (I've tried $| = 1 to no avail).

Needless to say, this has made my life hell when I've debugged CGI scripts and forgotten about this little "feature".

Update: To make matters worse, this feature appears to be intermittant. Every once in a while, with no code changes, "Where did this line go?" will appear.


In reply to RE: Re: More on hex pack/unpack by Ovid
in thread More on hex pack/unpack by BBQ

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.