in reply to Bug with lists?
The Comma Operator, is documented in perlop.perl -MO=Deparse -e '$x=[1, , ,2]' $x = [1, 2];
Update: My guess was wrong. The comma isn't being used in a scalar context. As an example of that see:
merlyn seems to have the correct reason.perl -MO=Deparse -e '$x=(1, , ,2)' $x = ('???', 2);
--
John.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Bug with lists?
by demerphq (Chancellor) on Feb 18, 2002 at 13:32 UTC | |
by merlyn (Sage) on Feb 18, 2002 at 13:48 UTC | |
by demerphq (Chancellor) on Feb 18, 2002 at 14:02 UTC | |
by tilly (Archbishop) on Feb 18, 2002 at 17:54 UTC | |
by demerphq (Chancellor) on Feb 19, 2002 at 09:11 UTC |