Re: Conditional array initialisation?by LanX (Chancellor)
|on Jul 12, 2013 at 19:38 UTC||Need Help??|
I suppose you want to assign default values to empty arrays only ("doesn't work" ???)
Using defined doesn't make sense here (see also hdb's reply), and the other expression has to be analogous to
But the second case fails cause the LHS of an or operator is evaluated in scalar context.
We had a longer discussion about this some weeks ago, which I didn't really follow (maybe somenone can link to it)
FWIW this works:
( addicted to the Perl Programming Language)