in reply to Re: Re: Re: Re: Re: Re: Dumping data
in thread Dumping data
I am a lazy programmer, I would prefer to simply cut and paste the stub to the start of the code, instead of trying to work out where to insert select. I know IO::Capture has limitations, but I like a solution that will leave the original code untouched as much as possible.# method 1 select RESULT; print "something\n"; select STDOUT; print "something\n"; # method 2 select RESULT; do_test(); select STDOUT; do_test(); sub do_test { print "something\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Re: Re: Dumping data
by Anonymous Monk on Jan 01, 2004 at 11:14 UTC | |
by Roger (Parson) on Jan 01, 2004 at 11:51 UTC |