open BIN_FILE,"<my.bin" or die "Can't find input file";
binmode BIN_FILE; # turn off cr/lf translation (only actually does anything on windows)
undef $/; # make reads slurp the whole file
@dataarray = unpack("i*",<BIN_FILE>); #decode the data; change the i to whatever format you have
$/ = "\n"; # turn slurping off
You'll have to be careful to get the correct pack/unpack format letter; if you're not sure what to use, create the binary file using another perl script and pack() using the same format letter used by unpack()