On Mon, Feb 25, 2002 at 12:35:29PM -0800, Larry Wall wrote:
> [EMAIL PROTECTED] writes:
> 
> : What would the default-variable scheme do in this context? 
> 
> That's a problem.  But a more basic problem is, what would a C<when> do?

My guess was that it would behave as if handed a list. So:

for @foo -> $bar, $baz {
        when /something/ { ... }
} 

would do a "match if any($bar,$baz) =~ /something/".

If this were the case and defaulting constructs used topic, they might
get a list instead of a scalar, from time to time. Interesting...


Allison

Reply via email to