Mar 29, 2017, 12:03 PM
Post #1 of 4
Perl script is working on different directories and at the end I want to clean working directory. I have a variable $path_to_cur_dir = /path/to/dir
How to check, if the script on current directory
What command to use to check if the script is on current directory, and if not, then change directory to current.
In my opinion it is supposed to be something like
if ( ! -z $path_to_cur_dir)
(This post was edited by digioleg54 on Mar 29, 2017, 12:10 PM)