You might also want to peruse perlport.
--Pileofrogs
In reply to Re: Detecting Environment by pileofrogs in thread Detecting Environment by Anonymous Monk