|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Writing to a fileby Anonymous Monk |
| on Aug 13, 2009 at 11:21 UTC ( [id://788230]=perlquestion: print w/replies, xml ) | Need Help?? |
|
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: The contents from {FILE} should be the filename. Here I have used the filename as sourcetag1. But file contains '?' in the filename and contents of print FH "<$tag>$_</$tag>\n"; is not written to a file. The content should write to the file until another {FILE} is read. When {FILE} is read the file should be closed and another file should be opened with the value as sourcetag2 Can you please tell me why the contents are written to the file.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||