Will given be a statement modifier also? This would be useful for quick-----Original Message----- From: Larry Wall [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 2:33 PM To: [EMAIL PROTECTED] Subject: Re: if not C<,> then what?
On Fri, Jul 09, 2004 at 11:23:09AM -0700, Austin Hastings wrote: : Will there be a statement modifier version of C<when>? : : print, next when /stgh/;
Yes, though in this case it's indistinguishable from C<if>, since // defaults to $_ anyway. However, these are different:
print, next when 3; print, next if 3;
topicalization:
say "$_ => %hash{$_}" given get_random_key();
Joe Gottman
hm... does perl5ish
say "$_ => %hash{$_}" for get_random_key();
become unusable suddenly?