length(pack "p", "0") gives the length of a pointer
In reply to Re: Perl API for 32 bit or 64 bit system on Unix by Thelonius in thread Perl API for 32 bit or 64 bit system on Unix by Anonymous Monk