Hi gregzartman,
The simple solution is to just do:
@array2 = a_sub_that_returns_a_list || '';
As AnomalousMonk explained, I doubt that code will do something that is useful for you...?
Why not just do
@array2 = a_sub_that_returns_a_list();
?
Regards,
-- Hauke D
In reply to Re^3: Return array from sub or return empty array (updated)
by haukex
in thread Return array from sub or return empty array
by gregzartman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |