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>);
In reply to Re: Appending print to a variable
by skyknight
in thread Appending print to a variable
by eric256
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |