in reply to expanding variables in variables

Can't you drop the split with qx?
In scalar context, it comes back as a single (potentially multi-line) string, or undef if the command failed. In list context, returns a list of lines (however you've defined lines with $/ or $INPUT_RECORD_SEPARATOR), or an empty list if the command failed.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^2: expanding variables in variables
by suaveant (Parson) on May 22, 2006 at 18:14 UTC
    Yup, but then the \n is still at the end of each line then, so you need to chop or chomp the array to get the same result.

                    - Ant
                    - Some of my best work - (1 2 3)