in reply to Re^2: How To Get The File's Directory?
in thread How To Get The File's Directory?
Hi guys, thanks for the replies... Actually, $0 solves the problem, it always gives "c:/temp/temp.pl", regardless of where I run the scripts.
I've tried running this scripts from various different directories, and I find that the only exception being, when I run it from "c:/temp/", then it'll give only "temp.pl", without any directory. Simply work around this exception will solve my problem at the moment.
At this moment, I'm only working on the Windows platform, so I'll be safe, for now. :)
Again, thanks a bunch, really appreciate it, guys!