in reply to Writing to a new file with a dynamically created name

raquelm:

Simple, create a string with the desired filename, and use the open statement:

open my $FH, '>', $output_filename or die;

I hope that's what you were looking for. If you show us the code you have, we can help by pointing where you're having the problems. You may want to review: Ask questions the smart way, I know what I mean. Why don't you? and How (Not) To Ask A Question.

...roboticus

When your only tool is a hammer, all problems look like your thumb.