http://qs321.pair.com?node_id=1173682


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

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