in reply to Writing to a file
$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: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Writing to a file
by Anonymous Monk on Aug 13, 2009 at 11:56 UTC | |
by Anonymous Monk on Aug 13, 2009 at 12:23 UTC |