On May 4, 2005, at 23:19 , Larry Wall wrote:
You must have missed the implied "..." at the end of my list of
other WTDI.
You can also do any of:
say "Two" if /hello/;
/hello/ && say "Two";
/hello/ and say "Two";
/hello/ ?? say "Two" :: leave;
infix:(/hello/, { say "Two" })
On Wed, May 04, 2005 at 11:00:46PM -0700, David Wheeler wrote:
: On May 4, 2005, at 22:31 , Larry Wall wrote:
:
: >given "hello" {
: >when /hello/ {
: >say "One";
: >if /hello/ { say "Two"; }
: >if /hello/ { say "Three"; }
: >continue;
:
On 5/4/05, Larry Wall <[EMAIL PROTECTED]> wrote:
> To get the other behavior, you have to say one of:
>
> given "hello" {
> when /hello/ {
> say "One";
> when /hello/ { say "Two"; continue; }
> when /hello/ { say "Three"; continue; }
> co
On May 4, 2005, at 22:31 , Larry Wall wrote:
given "hello" {
when /hello/ {
say "One";
if /hello/ { say "Two"; }
if /hello/ { say "Three"; }
continue;
}
say "Four";
}
Is there no more
say "Two" if /hello/;
?
Regards,
On Wed, May 04, 2005 at 11:00:31PM -0600, Luke Palmer wrote:
: What should the output of this be:
:
: given "hello" {
: when /hello/ {
: say "One";
: when /hello/ { say "Two"; }
: when /hello/ { say "Three"; }
: continue;
: }
: