Richard Luckhurst wrote: > Hi Hello,
> I am currently porting a script that runs well on a Linux box to a Win2003 box > and am having trouble getting a file move to work. > > To make my life a little easier I have installed the GNU Unix tools onto the > Win > 2003 box so I can use the unix commands in the command shell. > > The line I am having trouble with is as follows > > $mv_result = `mv $dir/pdfs/$print_dir/$book_no.PDF > $dir/pdfs/$print_dir/$replace.PDF`; > > All of the variables are created OK. I have confirmed this by printing them at > run time just to be sure. perldoc File::Copy For example: use File::Copy; move( "$dir/pdfs/$print_dir/$book_no.PDF", "$dir/pdfs/$print_dir/$replace.PDF" ); John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order. -- Larry Wall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/