in reply to Strange command line output after using Storable.pm

You're sending a whole lot of binary control characters to the TTY:
$ perl stor.pl | od -c 0000000 004 004 004 1 2 3 4 004 004 004 \b 003 003 \0 \0 \ +0 0000020 \b 203 004 \0 \0 \0 b l u e \b 202 005 \0 \0 \ +0 0000040 w h i t e \b 201 005 \0 \0 \0 b l a c +k 0000060 \n
Some of those could mean something special to SSH, or to Putty, or to Telnet, and could cause strange output. Best bet is not to echo strange binary characters to a console session, especially if you're using a Telnet or SSH client.