- or download this
open(VIRTUALPRN, "| perl print.pl");
- or download this
print VIRTUALPRN "foobar\n"
- or download this
select VIRTUALPRN; # make this the "default" output handle
$|++; # disable output buffering on this handle
- or download this
use FileHandle;
...
...
...
print $VirtualPrnFH "foobar\n";
...