I'm not a Perl user, so I only know the most rudimentary syntax, but I've inherited some scripts from a colleague for a data analysis pipeline that I'm trying to figure out.
Specifically, I can't understand how his perl scripts are locating the appropriate input/output directories using the following:
opendir DIR, "." or die
The way I've seen opendir used is along the lines of
opendir DIR, </yourpath> or die
I can't locate anything in the script to indicate what directory name is being accessed, so what is the "." syntax doing? I thought perhaps it just indicates to open the current directory, but that would presumably be
opendir DIR, './' or die
In any case, the program terminates without accessing the desired files, so I'm guessing this is the problematic line.