"Gazi, Nasser (London)" wrote: > Hi, > > How can I find the name the perl script on Win32? > > I know that the usual way is to use $0 > > However, this gives me a problem on Win32 with filenames bigger than 8 > characters, where $0 returns filename filename like "FIILEMAME~" which is > useless to me.
Eh? On win2K, ActivePerl 5.8, the following: #!/usr/bin/perl -w use strict; print "$0\n"; renders this at the command prompt: E:\d_drive\perlStuff\guests>samplefileused.pl E:\d_drive\perlStuff\guests\SampleFileUsed.pl Looks to me like you have any information you need about the current script and it's location. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]