Re: Redirecting file handler to STDOUT

2007-06-22 Thread Xavier Noria
On Jun 22, 2007, at 11:57 AM, Ben Edwards wrote: I am opening a log file: open( LOGFILE, cronlog.txt ); This is being written to in lots of places. I have been asked to change the program so if -m (manual) flag is passed the stuff that goes to the log file is send to standard out instead.

Redirecting file handler to STDOUT

2007-06-22 Thread Ben Edwards
I am opening a log file: open( LOGFILE, cronlog.txt ); This is being written to in lots of places. I have been asked to change the program so if -m (manual) flag is passed the stuff that goes to the log file is send to standard out instead. Is it possible to change the above command to

Re: Redirecting file handler to STDOUT

2007-06-22 Thread Paul Lalli
On Jun 22, 5:57 am, [EMAIL PROTECTED] (Ben Edwards) wrote: I am opening a log file: open( LOGFILE, cronlog.txt ); This is being written to in lots of places. I have been asked to change the program so if -m (manual) flag is passed the stuff that goes to the log file is send to standard

Re: Redirecting file handler to STDOUT (SOLVED)

2007-06-22 Thread Ben Edwards
Cool, the * is by reference. Thanks, Ben On 22/06/07, Paul Lalli [EMAIL PROTECTED] wrote: On Jun 22, 5:57 am, [EMAIL PROTECTED] (Ben Edwards) wrote: I am opening a log file: open( LOGFILE, cronlog.txt ); This is being written to in lots of places. I have been asked to change the

Re: Redirecting file handler to STDOUT (SOLVED)

2007-06-22 Thread Chas Owens
On 6/22/07, Ben Edwards [EMAIL PROTECTED] wrote: Cool, the * is by reference. snip It is a lot more complicated than that. Typeglobs allow you access to the symbol table. You can do some really cool things like *hw = sub { print Hello, , shift, \n }; hw(bork) -- To unsubscribe, e-mail:

Re: Redirecting file handler to STDOUT (SOLVED)

2007-06-22 Thread Paul Lalli
On Jun 22, 1:43 pm, [EMAIL PROTECTED] (Ben Edwards) wrote: Cool, the * is by reference. If you re-read my post, you will see the word reference no where in it. This has nothing to do with references. It involves typeglobs. By the way, this is now the third time (that I've noticed) that you've