in reply to The perils of DWIM

I think I've got that with print as well. I tried to write something like print foo @bar; to mean print(foo(@bar)); but perl thought it was print {foo} @bar;.

Replies are listed 'Best First'.
Re^2: The perils of DWIM
by Aristotle (Chancellor) on Oct 01, 2006 at 22:10 UTC

    Yeah, but that is easier to disambiguate. I would never have expected #2 to parse as it does, and with print, it wouldn’t either.

    Makeshifts last the longest.