sberthold has asked for the wisdom of the Perl Monks concerning the following question:
when I close FILE, the next time I use print will it be displaies on the screen?open (FILE, ">$dir\\$file"); print FILE "this is text\n"; close FILE; or open (FILE, ">$dir\\$file"); *STDOUT = *FILE; print "this is text\n"; close FILE;
2006-10-10 Retitled by GrandFather, as per Monastery guidelines
Original title: 'STDOUT'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Speed comparison between printing to STDOUT and printing to a filehandle
by shmem (Chancellor) on Oct 10, 2006 at 20:53 UTC | |
by tilly (Archbishop) on Oct 11, 2006 at 00:05 UTC | |
|
Re: Speed comparison between printing to STDOUT and printing to a filehandle
by dtr (Scribe) on Oct 10, 2006 at 20:57 UTC | |
|
Re: Speed comparison between printing to STDOUT and printing to a filehandle
by GrandFather (Saint) on Oct 10, 2006 at 20:44 UTC | |
|
Re: Speed comparison between printing to STDOUT and printing to a filehandle
by TGI (Parson) on Oct 10, 2006 at 23:14 UTC | |
|
Re: Speed comparison between printing to STDOUT and printing to a filehandle
by aquarium (Curate) on Oct 11, 2006 at 02:29 UTC |