title: How to get output from ls command into perl script by using unix pipe
body: <p>I need to take list of files and subdirectories in current directory and then take necessary actions with a perl script. The following command must be used for this purpose : <code>ls -F | perl myfile.pl</code>. The problem is how to reach output of ls command in perl script. Any help is appreciated.</p>