dagolden / Capture-Tiny

(Perl) Capture STDOUT and STDERR from Perl, XS or external programs
http://search.cpan.org/dist/Capture-Tiny/
39 stars 19 forks source link

stdin custom filehandle option #48

Open y opened 8 years ago

y commented 8 years ago

i have a command that accepts arguments via stdin to avoid leaking the password argument. i want to be able to pass the data as a variable to the stdin custom filehandle option (capture {...} stdin => $data). i'm looking into faking a file interface by tie()ing to IO::Seekable, but haven't gotten it working yet. would it be possible to support this not uncommon use case?