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; : Can there reasonably be block-postfix modifiers? : : { print; next; } if|when /stgh/; If there reasonably can be block modifiers, I will unreasonably declare that there can't be. You can always say: do { print; next; } if|when /stgh/; (It's still the case that do-while is specifically disallowed, however.) Larry