in reply to Script Directory vs. Directory Script was Called From

Don't know if this module exists or works under Windows, but try:
use FindBin; print $FindBin::RealBin,"\n";
no matter where I ran the script from it always gave me the full path to where the script was located.

/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"

Replies are listed 'Best First'.
Re: Re: Script Directory vs. Directory Script was Called From
by seigniory (Sexton) on Aug 15, 2001 at 01:14 UTC
    Sure does work under Windows... sure does exactly what I wanted it to do! Thanks :-)