in reply to Specifying filename
can't get the value of $filename into that path ... or something like thatmean?
Change
toopen (XMLFILE,">c:/Perl_Tests/".$filename.".xml");
Then you can see what error ($!) caused the open to fail (as well as the path that was used).my $path = ">c:/Perl_Tests/".$filename.".xml"; open (XMLFILE, $path) or die "Opening $path : $!";
You should also add use strict; use warnings at the top of your program.
|
|---|