... and if you do want to append a list to a scalar, join may be useful:
c:\@Work\Perl\monks>perl -wMstrict -le "sub something { return (3,4,5) }; ;; my $x = 'some data'; ;; $x .= join '--', something; print qq{'$x'}; " 'some data3--4--5'
Give a man a fish: <%-{-{-{-<
In reply to Re: Get outputs from 2 commands and add to var
by AnomalousMonk
in thread Get outputs from 2 commands and add to var
by Cisco_Dave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |