Re: Change "($one, $two)=" behavior for optimization? (was Re: RFC 175 (v1) Add C keyword to force list context (like C))

2000-09-02 Thread Damian Conway
> Ever consider then having > > ($a, $b, $c) = ; > or > @a[4,1,5] = ; > > only read three lines? I think this is a superb idea, and look forward to someone's RFC'ing it. Damian

Re: Change "($one, $two)=" behavior for optimization? (was Re: RFC 175 (v1) Add C keyword to force list context (like C))

2000-09-02 Thread Tom Christiansen
> > Here is my suggestion: What if other functions were able to backtrace > > context and determine how many arguments to return just like split can? >I have an RFC on that: > RFC 21: Replace C with a generic C function >C takes a list of strings that describe aspects of the >

Re: Change "($one, $two)=" behavior for optimization? (was Re: RFC 175 (v1) Add C keyword to force list context (like C))

2000-09-02 Thread Damian Conway
> Here is my suggestion: What if other functions were able to backtrace > context and determine how many arguments to return just like split can? I have an RFC on that: RFC 21: Replace C with a generic C function C takes a list of strings that describe aspects of the

[OT} Universal shell configuration

2000-09-02 Thread Jerrad Pierce
It's called meta shell ftp://www.guug.de/pub/members/truemper/metash -- #!/usr/bin/perl -nl BEGIN{($,,$0)=("\040",21);@F=(sub{tr[a-zA-Z][n-za-mN-ZA-M];print;}); $_="Gnxr 1-3 ng n gvzr, gur ynfg bar vf cbvfba.";&{$F[0]};sub t{*t=sub{}; return if rand()<.5;$_="Vg'f abg lbhe ghea lrg, abj tb.";&{$F

Re: RFC 114 (v2) Perl resource configuration

2000-09-02 Thread Andy Dougherty
On Fri, 1 Sep 2000, Tom Christiansen wrote: > >it can be used for system specific @INC paths without > >recompiling perl > > That's what PERL5LIB is for. PERL5LIB is available for the individual user to use, set, unset, change, etc., at will. As sysadmin, you can't set it in /etc/profile and b

Re: RFC 175 (v1) Add C keyword to force list context (like C)

2000-09-02 Thread Randal L. Schwartz
> "Tom" == Tom Christiansen <[EMAIL PROTECTED]> writes: Tom> Wherever you think you need one of these, try to think again. Either Tom> it's already in list context, in which case it's silly to put in Tom> the list thing, or else there's always a better way to accomplish Tom> whatever you're

Re: Change "($one, $two)=" behavior for optimization? (was Re: RFC 175 (v1) Add C keyword to force list context (like C))

2000-09-02 Thread Jeremy Howard
Tom Hughes wrote: > > For example, in Perl you have for a long time been able to do this: > > > >($one, $two) = grep /$pat/, @data; > > > > However, what currently happens is grep goes to completion, then > > discards possibly huge amounts of data just to return the first two > > matches. For

Re: Change "($one, $two)=" behavior for optimization? (was Re: RFC 175 (v1) Add C keyword to force list context (like C))

2000-09-02 Thread Tom Hughes
In message <[EMAIL PROTECTED]> Nathan Wiger <[EMAIL PROTECTED]> wrote: > For example, in Perl you have for a long time been able to do this: > >($one, $two) = grep /$pat/, @data; > > However, what currently happens is grep goes to completion, then > discards possibly huge amounts of

Re: RFC 114 (v2) Perl resource configuration

2000-09-02 Thread Michael G Schwern
On Fri, Sep 01, 2000 at 11:40:13PM -0400, Uri Guttman wrote: > > "TC" == Tom Christiansen <[EMAIL PROTECTED]> writes: > TC> But Perl is not an interactive shell! Can you imagine if a C > TC> compiler allowed arbitrary amounts of text to be pre-included > > and what about the proposals f

Re: Change "($one, $two)=" behavior for optimization? (was Re: RFC 175 (v1) Add C keyword to force list context (like C))

2000-09-02 Thread Nathan Wiger
Tom Christiansen wrote: > > >Well, it only does this if it's not something like 'split', then! > > Yes, it does "do it" with split. split is defined to do what it > does, how it does it. *This* is the kind of senseless harping that > annoys me, Nathan. H. I'm apparently not making myself