in reply to Aliasing a builtin?
In general, this is not worhwhile, unless obfuscation is one of your goals. Most perl programmers rely on having the builtins look the way they are described in perlfunc, and having them look different may cost more time for others to decipher code than what you saved by using fewer keystrokes.
The best savings are from factoring the coding task so that as little as possible needs to be typed (or pasted) multiple times, rather than simply shortening some strings that you think you need to type often.
BTW, a number of decent code editors provide something like aliases (emacs calls it "abbrev-mode"), where you can define a sequence of a few characters to act like a macro to insert a longer string.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Aliasing a builtin?
by xiper (Friar) on Mar 11, 2003 at 21:33 UTC |