Today around 8:03pm, Perl6 RFC Librarian hammered out this masterpiece:
: This and other RFCs are available on the web at
: http://dev.perl.org/rfc/
:
: =head1 TITLE
:
: Perl resource configuration
:
: =head1 VERSION
:
: Maintainer: Jonthan Scott Duff <[EMAIL PROTECTED]>
: Date: 16 Aug 2000
: Version: 1
: Mailing List: [EMAIL PROTECTED]
: Number: 114
:
: =head1 ABSTRACT
:
: Perl should provide a mechanism to have common code autoloaded from a
: file.
:
: =head1 IMPLEMENTATION
:
: Make perl look for the rc files.
I'm not sure about this.
Rather than perl looking for it. Perhaps the pragma perlrc* should look
for it.
Think on this:
use perlrc qw/Resource1 Resource5/; # Import only named 'Resources'
use perlrc qw/:all/; # Import all 'Resources'
use perlrc qw/:punc_vars/; # Import userdefined group of 'Resources'
This way, it's a 'use it if you ask for it' type of mechanism. On the
command line, the default action may be to import all 'Resources' defined
( Can we do that? )
perl -Mperlrc -nle 'print "Blah"'
Or some such.
This sounds much more managable than a .perlrc that get's applied globaly
without asking for it.
* No, this doesn't exist right now. I know.
--
print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'[EMAIL PROTECTED]',site=>
'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n";
print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig};
my $VERSION = '0.01'; #'patched' by Jerrad Pierce <belg4mit at MIT dot EDU>