well i could spend ample amount of time testing code for someone else. like everyone else here, i'm only offering suggestions on how a problem can be overcome. seriously, if someone is trying to create a perl script, they'll have at least some knowledge in perl on how to fix errors if something isn't right. if the code i submitted doesn't work, then my bad. but the recipient of the code can insert it into their code, and if it doesn't work, perl will spew errors on what's wrong, and where, so they can fix it.
dan "Paul Johnson" <[EMAIL PROTECTED]> wrote in message news:60995.193.134.254.145.1036512487.squirrel@;wesley.pjcj.net... > > dan said: > > __ 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. > > Might I suggest testing next time ;-) > > > "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. > > Did you check whether the chdir succeeded? > > Hint: \a rings the bell. > > -- > Paul Johnson - [EMAIL PROTECTED] > http://www.pjcj.net > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]