That was what I needed (teach me to read the manpages all the way down). Since the binary structure I am creating contains a field specifying the endianess of the data, simply doing something like
print pack 'f>', 1.2345;worked like a charm.
Thanks to all for the responses.