pp -o test.exe -d test.pl -M Some::Module .... #### my $scalar = ''; open FOO, '>', \$scalar; print FOO "Hi there\n"; close FOO;