You don't need a command line switch unless<br>you want to pass args:<br><br>% echo 'print &quot;hi\n&quot;;' | perl <br>hi<br>% echo 'print &quot;@ARGV\n&quot;;' | perl - a1 a2<br>a1 a2<br><br>JD<br><br><div><span class="gmail_quote">
On 9/7/06, <b class="gmail_sendername">David S. Patterson</b> &lt;<a href="mailto:david.s.patterson@usa.net">david.s.patterson@usa.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to kludge together a strategy to protect some perl source code from<br>prying eyes (this would be on a Unix-like system).<br><br>I'm thinking of a solution in which a simple compiled front-end program reads<br>
an encrypted text file, decodes it internally into a perl script, and then<br>execs or launches the perl executable and somehow provides the decoded perl<br>script to it.&nbsp;&nbsp;The point is that the decoded perl script must never become a
<br>temporary file that a &quot;casual user&quot; could edit.&nbsp;&nbsp;I think that temporary pipe<br>files would be fine, finding and opening those is not &quot;easy&quot;.<br><br>Does anyone have any ideas or suggestions about this?
<br><br>Is it possible to &quot;pipe&quot; a file to perl and have it execute it?&nbsp;&nbsp;Can it be<br>done with the right command line switch?<br><br>e.g.:&nbsp;&nbsp;$ cat foo.pl | perl<br><br>Thanx,<br><br>-Pat<br><br><br>_____________________________________________________________
<br>Seattle Perl Users Group Mailing List<br>&nbsp;&nbsp;&nbsp;&nbsp; POST TO: <a href="mailto:spug-list@pm.org">spug-list@pm.org</a><br>SUBSCRIPTION: <a href="http://mail.pm.org/mailman/listinfo/spug-list">http://mail.pm.org/mailman/listinfo/spug-list
</a><br>&nbsp;&nbsp;&nbsp;&nbsp;MEETINGS: 3rd Tuesdays<br>&nbsp;&nbsp;&nbsp;&nbsp;WEB PAGE: <a href="http://seattleperl.org/">http://seattleperl.org/</a><br></blockquote></div><br>