in reply to
System() or the like
either
$type=`$run`;
(those are backticks, not quotes) or
open(OUTPUT,"$run|"); $type=<OUTPUT>; close(OUTPUT);
[download]
should do it. Both are in the 'Social Perl' chapter of the camel book, IIRC.
Comment on
Re: System() or the like
Select
or
Download
Code
In Section
Seekers of Perl Wisdom