On 4/23/01 3:59 PM, Nathan Wiger wrote: >> Then how do you concatenate a number? > > Here's something I was thinking about at lunch: > > $concated_number = "$number" + "$other_number"; > $numerical_add = $number + $other_number; > > Why not require "" in the case when you want to forcible concat a number > as a string? Most people write: > > $string = "$number$other_number"; > > Already anyways. You would only have to disambiguate if one of the args > was not a string. So here would be some equivalents: > [snip] Using + for concat: no! My vote is to use . and require space before and after. $this.$is.$ugly.$anyway ;) -John
- Re: Tying & Overloading Glenn Linderman
- Re: Tying & Overloading Larry Wall
- Re: Tying & Overloading Simon Cozens
- Re: Tying & Overloading Larry Wall
- Re: Tying & Overloading John Siracusa
- Re: Tying & Overloading Larry Wall
- Re: Tying & Overloading Larry Wall
- Re: Tying & Overloading Nathan Wiger
- Re: Tying & Overloading Larry Wall
- Strings vs Numbers (Re: Tying & Overloading) Nathan Wiger
- Re: Strings vs Numbers (Re: Tying & Overloading) John Siracusa
- Re: Strings vs Numbers (Re: Tying & Overloading) Branden
- Re: Strings vs Numbers (Re: Tying & Overloading) Bart Lateur
- Re: Strings vs Numbers (Re: Tying & Overloading) Larry Wall
- Re: Strings vs Numbers (Re: Tying & Overloading) Graham Barr
- Re: Strings vs Numbers (Re: Tying & Overloading) John Porter
- Re: Strings vs Numbers (Re: Tying & Overloading) John L. Allen
- Re: Strings vs Numbers (Re: Tying & Overloading) Michael G Schwern
- Re: Strings vs Numbers (Re: Tying & Overloading) Edward Peschko
- Re: Strings vs Numbers (Re: Tying & Overloading) Edward Peschko
- Re: Strings vs Numbers (Re: Tying & Overloading) Michael G Schwern