Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Here is my tilly story.

I was working on a program recently that had a most peculiar bug. It was writing information to a logfile, and the logfile would remain empty. At first I suspected that IO::Tee was at fault (or, more specifically, the way I was using it was at fault).

Out of desperation, I wrote a little script showing how I was using it, and I posted it the other day. I didn't really expect much to come of it. I got a couple of helpful responses, and then, three days later, tilly posted a follow-up that nailed the problem on the head.

At the end of the program, I had to call an external program to finish off the processing. I didn't see the need to use system, because error checking of that external program is handled in another way. So I just execed the program in place. At that is what was causing my logfile to go empty. I was pulling the rug from under the script before it had a chance to close the file properly.

Time and again, I am amazed by the breadth and depth of tilly's knowledge. We have had retirement announcements from people in the past. Some have come back. Others have not.

Ben, if you have to leave, I will miss you.

print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'

In reply to Re: Professional Employees and Works for Hire by grinder
in thread Professional Employees and Works for Hire by tilly

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others avoiding work at the Monastery: (4)
    As of 2020-01-20 09:07 GMT
    Find Nodes?
      Voting Booth?