[stupid-crypto] push by ben@links.org - Yet another way to start perl regardless of where it lives. on 2010-04-11 13:22 GMT

3 views
Skip to first unread message

stupid...@googlecode.com

unread,
Apr 11, 2010, 9:23:19 AM4/11/10
to stupi...@googlegroups.com
Revision: d27c6dc37b
Author: Ben Laurie <b...@links.org>
Date: Sun Apr 11 05:27:37 2010
Log: Yet another way to start perl regardless of where it lives.
http://code.google.com/p/stupid-crypto/source/detail?r=d27c6dc37b

Modified:
/src/stupid.pl
/test/test.pl

=======================================
--- /src/stupid.pl Tue Apr 6 04:05:30 2010
+++ /src/stupid.pl Sun Apr 11 05:27:37 2010
@@ -1,7 +1,9 @@
-#!/usr/bin/env perl
+#!/bin/sh
+eval 'exec perl -x -w $0 ${1+"$@"}'
+
+#!perl actually starts here.

use strict;
-use warnings;

use grammar;
use File::Slurp;
=======================================
--- /test/test.pl Tue Apr 6 05:28:47 2010
+++ /test/test.pl Sun Apr 11 05:27:37 2010
@@ -1,7 +1,9 @@
-#!/usr/bin/env perl
+#!/bin/sh
+eval 'exec perl -x -w $0 ${1+"$@"}'
+
+#!perl actually starts here.

use strict;
-use warnings;

use Getopt::Long;
use Carp;

Reply all
Reply to author
Forward
0 new messages