question about first perl script

Hi all:

I'm trying to write my first perl script to calculate space for graphics and scale accordingly. For graphics inside of tables (cals tables), I'm trying to pass along the column width to my perl script. I'm  using <whichcol(%col)> to get the info, then set an x-register and pass that value to the perl script. However, the number I get is way different than what I see when I look at the status window. Even when I account for gutters, it's still way off. I'm using XPP 9.1 on Windows. Any ideas? Thank you!