in reply to TK filehandle path

I don't have Win32, so I can't get shortpath, but I suspect it's because you chdir, and that path to file is no longer there.

Also, when you create_file() you should check the open

sub create_file{ open (MYFILE, ">$output_directory/token.txt") or die "$!\n"; print MYFILE "ciao"; close (MYFILE); }

I get "no such file or directory". It would also help if you made a self-contained fully running example.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh