note
themage
Hi smunro16,
<br><br>
I presume that your question is on how to get the path to the scripts.
<br><br>
You have two ways to get it. The first is using <c>$0</c>, that will give you the path to the current perl script, se second is using <c>use Find::Bin</c>.
<br><br>
If you choose to use $0:
<c>
my $path=$0;
$path=~s/[^/]+$//;
</c>
<br><br>
<c>$path</c> will now have the path to the directory where your perl script is.
<br><br>
Note, however, that if you chdir inside you perl script $0 may not be a valid path to you perl script, once it may be relative to you initial path.
<br><br>
To know more about this you may want to read the thread [41204|How do I get the full path to the script executing?].
<br><br>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-273763">
TheMage<br>
[http://magick-source.net|Magick Source]<br>
[http://www.talking-web.org|Talking Web]<br>
[http://www.sites-favoritos.com|Sites Favoritos]
</div></div>
706688
706688