http://www.perlmonks.org?node_id=967565


in reply to Re: Put "ls" in array
in thread Put "ls" in array

It's totally depends on your requirment. If you simply want to push into array and list then here is snippet..

my @dir= `ls`; print "\n @dir"; output: #test# allcases bin codebase core execute_dir nonqa precutoff reversal stamp1 stamp2 start_epicDB.pl test.pl test.sh