in reply to Bug with lists?
Why should "empty" be undef??
The above code prints (1,2). - tye (but my friends call me "Tye")my @empty= (); my @list= ( 1, (), empty(), /(hi)/g, @list[@empty], 2 ); sub empty { return } print "(", join(",",@list), ")\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: Bug with lists?
by demerphq (Chancellor) on Feb 18, 2002 at 14:42 UTC | |
by merlyn (Sage) on Feb 18, 2002 at 14:47 UTC | |
by demerphq (Chancellor) on Feb 18, 2002 at 14:59 UTC | |
by Anonymous Monk on Feb 21, 2002 at 01:05 UTC |