in reply to Appending print to a variable
Execute this code, making note of the order of the printouts, and I think you'll get the idea.
#!/usr/bin/perl -w use strict; print "well, here we are!\n"; pipe(READ, WRITE); my $original = select(WRITE); print "and now we're here...\n"; close(WRITE); select($original); print "almost done...\n"; print while(<READ>);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Appending print to a variable
by eric256 (Parson) on Jul 30, 2003 at 17:21 UTC | |
by skyknight (Hermit) on Jul 30, 2003 at 17:42 UTC | |
by eric256 (Parson) on Jul 30, 2003 at 17:46 UTC |