$filename is being created in an inner lexical scope. Create it in the same scope as the open.use strict; use warnings;
open FH,'>',"$filename.xml" or die "Unable to open $filename.xml: $!";
In reply to Re: Writing to a file
by cdarke
in thread Writing to a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |