in reply to creating an error message

You might want to consider adding one more line to your code:
use warnings;
If you do, you will get the following message:
Unquoted string "null" may clash with future reserved word at line ... +."
I'd personally make it two lines:
use strict; use warnings;

----
I Go Back to Sleep, Now.

OGB