in reply to Variable expansion

Are you sure you are using `` and not '' ?
To avoid confusion, use qx// instead; e.g.,
my $cmd = 'ls -la'; my @out = qx/$cmd/;

--perlplexer