"Nishi Bhonsle" schreef: > Hi: > > If I have to create a writeable file say write.txt on fly during > program execution under the OS default/local drive of a machine ie > C:\ or D:\ on windows and /home/user etc on unix, how can I get that > local/default drive using perl so that I dont have to hardcode C:\ or > D:\ or /home etc inside the script as path to the write.txt. > > Thanks much.
Do a search on CPAN with "home": File::Save::Home File::HomeDir (with a ::Win32 and a ::Windows) -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>