So you want to compile a Perl module for Openwrt... the openwrt way? Welcome to the jungle.
First, checkout or download your install of openwrt, I'm using backfire (10.03) for this example.