Running

bufrencode.pl --data data --metadata metadata > bufr.dat

on files data (containing data for 2 subsets) and metadata results in a BUFR file bufr.dat which looks like this when decoded with bufrread.pl