in reply to open file for read/write
open my $handle, "+<", "/your/file/here" or die "Failed to open file: +$!"; [download]