On Fri, Sep 01, 2000 at 07:16:13PM -0400, Uri Guttman wrote:
> >>>>> "MGS" == Michael G Schwern <[EMAIL PROTECTED]> writes:
>   MGS> Forcing -T on                           Will break most existing programs.
>   MGS>                                         Makes one-liners annoying.
> 
> who runs one liners with -T?

That's the point.  .perlrc would effect all perl, including
one-liners.  What's good for big programs is not good for small.


> what about making the rc files load only if there is code not in a -e
> string? this solves the one liner problem.

I thought of this, but the special cases begin to pile up.  First,
there's the issue of Perl acting differently from a file as from a
command line.  Weird.  Then in the .perlrc there's something things
you'll want for one-liners, some for files, some for both.  Sounds
like it would make writing the .perlrc files hairy.

And there's still the problem of .perlrc not being down with OPP
(Other People's Perl).


> yechhh!! and that script will slow everything down with a double call to
> perl.

Not necessarily.  It could eval() instead.  A prototype can be written
and performace testing performed before we start declaring things
slow.  It will probably slow things down a bit, yes, but that has to
be weighed against the *signifcantly* simpler implemetation than a core
patch.  Especially considering the low urgency of this RFC.


> i think a system rc file is a good idea but the way to use it is not
> well defined.
> 
> i think an environment var might be a good way. if it is set, it is the
> file(s) to preload before running your code.

The question still remains unanswered.  What do you DO with a .perlrc file??


-- 

Michael G Schwern      http://www.pobox.com/~schwern/      [EMAIL PROTECTED]
Just Another Stupid Consultant                      Perl6 Kwalitee Ashuranse
I am not one of those stupid moron who don't know what I am doing. I know
about FDA. FDA raids hundreds of small businesses every year that deal with
alternative medicine or therapy. They take away your computer, seize your
$200,000 inventory, and drive your company totally out of business in no time
if they ever approach you.
             --Alex Chiu, Immortality Guy

Reply via email to