> If, instead, you wrote: > > $me = $name + getpwuid($<); > > You would get numeric addition. Always. In this way, you maintain a > reliable semantic separation of string concat and numeric addition, > while gaining a syntax that is similar to other HLL's. Having "$var" > expand $var is the reason this is possible. So, what would this do? $user_pass = (getpwuid($<))[0] + (getpwuid($<))[1]; Your operator is still ambiguous, since you probably want a concat, but have no place for the quotes. The convention needs to consider more than just variables.
- Sane "+" string concat proposal Nathan Wiger
- Re: Sane "+" string concat proposal Mark Koopman
- Re: Sane "+" string concat proposal Michael G Schwern
- Re: Sane "+" string concat proposal Casey West
- Re: Sane "+" string concat proposal Michael G Schwern
- Re: Sane "+" string concat proposal Dan Brian
- Re: Sane "+" string concat proposal Jonathan Scott Duff
- Re: Sane "+" string concat proposal Stephen P. Potter
- Re: Sane "+" string concat proposal Casey West
- how about just juxtaposing? (Re: Sane &qu... Jarkko Hietaniemi
- Re: how about just juxtaposing? (Re: ... Michael G Schwern
- Re: how about just juxtaposing? ... Casey West
- Re: how about just juxtaposing? ... Edward Peschko
- Re: how about just juxtaposing? ... David L. Nicol
- Re: how about just juxtaposi... Michael G Schwern
- Re: Sane "+" string concat prop... Stephen P. Potter