in reply to Sticking output onto the end of your script.
This is used simply, so that:package SelfRecord; use strict; open SELF, '>>', $0 or warn("huh?: $!"); select SELF; $|=1; print "\n__END__\n"; 1;
Becomes:#!/usr/bin/perl -w use strict; require SelfRecord; print "Hello!"
When run.#!/usr/bin/perl -w use strict; require SelfRecord; print "Hello!" __END__ Hello!
Anima Legato
.oO all things connect through the motion of the mind
|
|---|