in reply to Re^2: Return array from sub or return empty array (updated)
in thread Return array from sub or return empty array

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