Brian Fraser <fraserbn <at> gmail.com> writes: >Nothing wrong with using <at> _ outside of a subroutine. And beyond being >a possible shortcut, it has its own use: > >sub foo { @_ } >@_ = "val"; >say &foo This is a highly wizardly shortcut and only in very marginal cases is it better than just foo("val"). The documentation does say This is an efficiency mechanism that new users may wish to avoid. That is outweighed for me by the number of types I have typed @_ instead of @$_ by mistake. But perhaps it's just me who does that? -- Ed Avis <eda@waniasset.com>Thread Next