- or download this
"
#!perl -i.bak
@ARGV = ($0);
...
"
# normal lines start here
# etc. etc.
- or download this
#!/bin/env updater
# perl -lanwe '(...the script from before...)' inputfile
# ...
# the normal output...
# ...
- or download this
#!/usr/bin/perl
use strict;
use warnings;
...
open my $pipe, "| $ENV{SHELL}";
print $pipe $script;
close $pipe;