in reply to Re: How to copy a file in a perl variable to a directory
in thread How to copy a file in a perl variable to a directory

Good advice. Since the arguments to copy() are also variables I would always include them in the die string too just to make sure they contain what you think they do.