C:\Tools\Perfstat\Viewer>perl psf_get_all_data.pl Can't open perl script "psf_get_all_data.pl": No such file or directory
@INC is used by require, use and maybe do. It's not used to locate the script passed to perl.
Perl relies on the OS to provide searching facilities for the script itself. Specifically, to get that behaviour in Windows, you are expected to associate .pl files with Perl (done for you by ActivePerl's installer), and add the directory in which the script resides to your PATH. Under those conditions, you can execute your script by simply typing psf_get_all_data.pl.
|