Tuesday, June 16, 2015

현재 실행중인 perl 스크립트의 파일명 얻는 법

__FILE__ is the actual file that the Perl interpreter deals with during compilation, including its full path.
사용예:
use File::Basename;
my $dirname = dirname(__FILE__);
레퍼런스 : How do I get the full path to a Perl script that is executing?

No comments:

Post a Comment