On Tue, Mar 19, 2002 at 07:46:36AM +0100, [EMAIL PROTECTED] wrote: > On Tue, Mar 19, 2002 at 10:46:04AM +1100, [EMAIL PROTECTED] wrote: > > > > In an attempt to stimulate non-golf threads: > > > > .. Has anybody done any really interesting Perl "hacks" that they are > > proud of? > > > Yeah, I do actually. Recently I was writing a program that needed > to (shell) source a file, to get some environment variables set, > and use those variables in further calculations. > > I could of course have written a shell wrapper that sourced the file, > then started my program. But I decided I just wanted a single program.
Or you could have used Shell::Source, which is a little hack I put together a number of years ago, and with which I am reasonably proud. It doesn't quite have the hack value of your solution though. As an aside, I received a message this morning from someone wanting to use the module in a critical environment, and asking if I could certify it as bug free :-) I am considering my response ... -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net
