my @array; my @newarray = @array || (); ### the same thing: my @new_array = @array; ## That is, if @array is undef, it is just extra code ## doing the test and assigning () to the new array... ## Just skip all that... they are the same op.
In reply to Re: Dereference Empty(!) Array
by Anonymous Monk
in thread Dereference Empty(!) Array
by lukestyle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |