On Tue, Apr 5, 2011 at 6:54 PM, ANJAN PURKAYASTHA < anjan.purkayas...@gmail.com> wrote:
> Hi, > Is there any way to run a shell command from within a perl script and > capture the output in, say, an array? > One can run a shell command through the system function. But system itself > just returns a status code. > > -- > Is this ok? my @files =`ls`; print @files; > =================================== > Anjan Purkayastha, PhD > Senior Computational Biologist > TessArae LLC > 46090 Lake Center Plaza, Suite 304 > Potomac Falls, VA 20165** > Office- 703.444.7188 ext. 116 > Mobile-703.740.6939 > =================================== >