Help for this page
open(IMAGE, ">/somedir/$graphfile.png") or die "Couldn't open /somedir/$graphfile.png for writing: $!";