Monday, May 25, 2009

How to get the installation path of Perl from system path

Run the following command in a console

perl -e 'print "@INC";'

It will print all the entries in the system path.



Monday, May 18, 2009

Count no. of files in a directory

A simple command

                             dir /b | find /c /v ""

                            ls -l | wc - 1

Good and it is very useful....