Suppose I have a Perl script, namely mytest.pl. Can I run it by something like cat mytest.pl | perl -e
?
The reason I want to do this is that I have a encrypted perl script and I can decrypt it in my c program and I want to run it in my c program. I don't want to write the decrypted script back to harddisk due to secruity concerns, so I need to run this perl script on-the-fly, all in memory.
This question has nothing to do with the cat
command, I just want to know how to feed perl script to stdin, and let perl interpreter to run it.