in reply to How can I avoid code repetition here
(swapping the arguments if two arguments are given). But will it gives you access to a lexical $_ is called with one argument, it won't pass $_ if not called with any arguments. A prototype of _;$ will fail to do right thing if one argument is given.sub lchompx (;$_)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I avoid code repetition here
by rovf (Priest) on Oct 08, 2009 at 09:35 UTC | |
by JavaFan (Canon) on Oct 08, 2009 at 09:48 UTC | |
by rovf (Priest) on Oct 08, 2009 at 10:56 UTC | |
by JavaFan (Canon) on Oct 08, 2009 at 11:45 UTC | |
by rovf (Priest) on Oct 08, 2009 at 14:24 UTC | |
|