in reply to Perl and data types (use Config;)

Perhaps the .*type values might serve for what you're looking for? They give the C data type used:

$ perl -V:i8type -V:i16type -V:i32type -V:nvtype i8type='char'; i16type='short'; i32type='long'; nvtype='double';

The cake is a lie.
The cake is a lie.
The cake is a lie.