I used your Perl on the spreadsheet with the variables defined.
Cell B1 was defined as depth and had the value of 559
Cell B2 was defined as height snd had the value of 560
Cell B3 was defined as Width and had the value of 590?
I got quite a lot of output but this well be because I simply removed cells to leave just a few to consider.
In this output I found the following
depth =CALC!$B$1
height =CALC!$B$2
width =CALC!$B$3
This seems usable since it effective says that the three variaibles depth, height and width are in the 3 cells B1, B2 and B3.
I think I can use the cell references to 'read' the values but I wondered what the most effect way of doing this.Some clues will be appreciated