I love the monastery. Yes tye, that was actually the first place my brain went when I read the brian_d_foy write up that davido linked to. By that I mean trying to figure out a way to use the END block to pause, but only in the event of a die or exit and not if the script finishes and terminates normally. I figured I would try to find a way to make that happen if I could.

It's also pretty cool that you have a way of sneaking that in as the default behavior for all *.pl files run on a machine, and I probably would have done exactly that as well, except that 99% of the time my scripts are being run locally on various individual work PCs after I've used pp (PAR::PACKER) to compile them in to *.exe files. The * portion is included on a program "white list" maintained by my company's system administrators so all the machines connected to our network let them run around the common security lockouts (of which even cmd.exe is one, sheesh).

I did manage to get them to add a version of Strawberry Perl to our list of corporate wide available optional software installs, but I don't like asking every new user to go out and install that, so I tend to stick with the PAR::PACKER *.exe method. I'm far from an IT guru, and having to dance the network security circumvention mamba usually just results in me being tired, frustrated, and feeling beaten down by the corporate world.

I love it when things get difficult; after all, difficult pays the mortgage. - Dr. Keith Whites
I hate it when things get difficult, so I'll just sell my house and rent cheap instead. - perldigious

In reply to Re^2: Getting the Behavior of the "file open or die" Pragma but with a Program Pause (-Mouse) by perldigious
in thread Getting the Behavior of the "file open or die" Pragma but with a Program Pause by perldigious

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.