__ START __ my $path = qq~C:\path\where\to\put\stuff~; open (WHATEVER,qq~>$path\filename.ext~) or die (qq~Can't open $path\filename.ext for writing : $!~); etc.. close(WHATEVER); __ END __ Note: untested, but i doubt anything can go wrong.
give that a go. dan "Ankit Gupta" <[EMAIL PROTECTED]> wrote in message news:20021105140731.2786.qmail@;onion.perl.org... > Hi, > > I have written script that makes lot of files but the problem is that my > script stores all the files at the location from where the script is run. I > have tried usingt chdir("c:\abc") in order to store all the files in abc > directory but its of no use and still it stores files in the directory from > where the script is run. > > Could someone throw some light as how I can use some statement before making > files so that all of them are stored in one directory of my choice. > > Regards, > Ankit > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]