At 22.01 -0600 1999.11.30, Matthew Langford wrote: >Here's the thought...I have a set of scripts that write to standard >output. Is there a way in the MacPerl IDE to set stdout to go to (save >dialog) a file? Make a module file "STDOUT.pm" and put it in your site_perl, containing: package STDOUT; open STDOUT, ">>foo" or die $!; The go to Preferences -> Environment and add an environment var named "PERL5OPT" with the value "-MSTDOUT". Done! Although I think I remember -M not working anymore in PERL5OPT in a future perl version. I forget. >Another addition (I would call it a bug-fix) is supporting magic-cookie >command-line switches like -w and -T and -d in addition to the menu items. >Supporting the #!/perl switches allows turning these things on and off per >script much more flexibly. They are supported on the #! line, except for -T, which for good reason cannot work in the existing setup. -w and -d work fine, though. And there is little reason to need -T to work on the #! line, since for CGIs you can use the Taint Check CGI Script extension. It would be nice for -T to work on the command line, and maybe it can be looked into. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) # ===== Want to unsubscribe from this list? # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org