in reply to perlrc for perl programs

You could put your desired items in a perl module and then use -M command line option to include them. This would be explicit. It sounds like you're looking for something that's implicit?

Example: mystuff.pm

use strict; use Data::Dumper; use Scalar::Util; 1;

test.pl

print Scalar::Util::reftype("foo"); print Dumper("this is some raw text");

invocation:

~/src/perl$ perl -Mmystuff test.pl $VAR1 = 'this is some raw text';

Still looking... Still searching...