"Dave Cross" <[EMAIL PROTECTED]> writes: > This foxed a few people here yesterday. > > After running the following code, what does $i contain (and explain > your answer). > > $i=1,2; $i contains 1, because = binds tighter than ','. If said statement were the last statement in a sub, said sub would return 2. And the programmer who perpetrated said code would be receiving a stiff talking to. -- Piers Cawley www.iterative-software.com
- Re: Friday Morning Fun Mark Fowler
- Re: Friday Morning Fun Andrew Wilson
- Re: Friday Morning Fun Paul Johnson
- Re: Friday Morning Fun Jonathan Stowe
- Re: Friday Morning Fun Dominic Mitchell
- Re: Friday Morning Fun Andrew Wilson
- Re: Friday Morning Fun Dominic Mitchell
- Re: Friday Morning Fun Newton, Philip
- Re: Friday Morning Fun Newton, Philip
- Re: Friday Morning Fun Rob Partington
- RE: Re: Friday Morning Fun Piers Cawley
- RE: Re: Friday Morning Fun Dave Cross
- Re: Friday Morning Fun Tony Bowden
- Re: Friday Morning Fun Newton, Philip
- Re: Friday Morning Fun Kate L Pugh
- Re: Friday Morning Fun Sue Spence
- Re: Friday Morning Fun Paul Johnson
- Re: Friday Morning Fun Dominic Mitchell
- Re: Friday Morning Fun Newton, Philip
- Re: Friday Morning Fun Paul Johnson
- RE: Friday Morning Fun Barman, Harry