in reply to Re^2: Prototype like sort()?
in thread Prototype like sort()?

Yup, all the time I write subs that behave differently depending on the type of arguments. The most common is: foo([ \%opts ], $arg, ...) and then trying to detect the optional hashref in the first argument.

What I'm looking for here is the syntax bonus :)