Larry Rosler wrote: > > > From: Steve Lane [mailto:sml@zfx.com] > > wouldn't the functions that take either a scalar > > or list argument be easier to write using: > > > > @_ = ($_) unless @_; > > > > instead? > > Easier, perhaps. Correct, no! > > We're trying to reproduce the semantics of abs(), which say nothing > about clobbering @_ if there is not argument. ah, darn, i forgot about that unfortunate side-effect. i guess the optimum for the list functions would be: my @arg = @_; @arg = ($_) unless @arg; -- Steve Lane <sml@zfx.com> ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe