Check your problem:
Why should the length L depend on the strength of gravity? This is usually something you just cut to whatever length you like - 1m on Jupiter is the same as 1m on the moon... unless, I suppose, you are doing the measuring from a different gravity from the one the meter is in? (This forum I don't want to make too many assumptions!)