On Tue, Apr 11, 2006 at 01:21:32PM +1200, Sam Vilain wrote: : Larry Wall wrote: : : >: But this fragment dies: : >: : >: #sub foo : >: #{ : >: # bar { } unless baz : >: #} : >I don't see how that's different at all from the first example. : > : > : : “#sub foo” is parsed as a comment token : “#{ : # bar { }” is the next comment token : : then we get “unless baz” : : Unless you are balancing {}'s inside the # blocks, like q{ } does.
That is how it is specced, and why the first example works. Larry