Acme-Scripticide
view release on metacpan or search on metacpan
Scripticide.pm view on Meta::CPAN
good_bye_cruel_world('.ext', $note)
=head1 When this would actually be handy.
Beleive it or not this is handy if you have a one time job to execute:
# $script uses Acme::Scripticide
system $script if -e $script;
or say to create static files from a database:
# in flowers.pl (copy this to whatever names you want and execute:)
use Acme::Scripticide qw(good_bye_cruel_world);
good_bye_cruel_world('.html', get_html($0));
now flowers.pl does not exist and flowers.html is there
You could have a directory full of those types of scripts and glob() them in and execute each one, once done you have a directory of corresponding static html files...
=head1 Disclaimer
( run in 1.225 second using v1.01-cache-2.11-cpan-b85c58fdc1d )