Skip to content

Instantly share code, notes, and snippets.

@typester
Created March 11, 2009 18:03
Show Gist options
  • Save typester/77609 to your computer and use it in GitHub Desktop.
Save typester/77609 to your computer and use it in GitHub Desktop.
open my $fh, '| /usr/local/bin/perl'
or die "error: $!";
print $fh $_ for <DATA>;
__DATA__
use LWP::Simple 'get';
undef $ENV{PERL5OPT};
$ENV{PATH} = '/usr/local/bin';
my $code;
sub load($) {
$code .= get($_[0]);
}
sub run() {
open my $fh, '| /usr/local/bin/perl' or die "error: $!";
print $fh $code;
}
load "http://gist.github.com/raw/77600/a5cc050438853a5c432709f42e2a6abc08cb0ed0/gistfile1.txt";
run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment