On Mon, Apr 23, 2001 at 01:23:43PM -0600, Nathan Torkington wrote: > Larry Wall writes: > > wanted, you still get the length. If you're worried about the delayed > > operation, you can force numeric context with $x = +@tmp;, just as you > > can force string context with a unary ~. > > How often are you likely to do this? Speaking as a reader of code, > I've always hated unary + in that crocky "this could be a block or an > expression" sense. I'd prefer a word operator: > > $x = numeric @tmp; Ig you are going to put a word there, then why not $x = length @tmp or $x = @tmp.length Graham.
- Re: Tying & Overloading Simon Cozens
- Re: Tying & Overloading Graham Barr
- Re: Tying & Overloading Stephen P. Potter
- Re: Tying & Overloading Larry Wall
- Re: Tying & Overloading Austin Hastings
- Re: Tying & Overloading Larry Wall
- Re: Tying & Overloading Graham Barr
- Re: Tying & Overloading Buddha Buck
- Re: Tying & Overloading Larry Wall
- Re: Tying & Overloading Nathan Torkington
- Re: Tying & Overloading Graham Barr
- Re: Tying & Overloading John Porter
- Re: Tying & Overloading Larry Wall
- Re: Tying & Overloading John Porter
- Re: Tying & Overloading Dan Sugalski
- Re: Tying & Overloading John Porter
- Re: Tying & Overloading Dan Sugalski
- Re: Tying & Overloading John Porter
- Re: Tying & Overloading Dan Sugalski
- Re: Tying & Overloading Austin Hastings
- Re: Tying & Overloading Glenn Linderman