Hello and thanks for researching this very interesting question!
There are several types of lizards in the world classified as "legless"--these critters can actually have 2 front legs, 2 back leg stumps, or no legs at all! They are distinguished from snakes by several criterion.
The specific name of the lizard you saw would depend on where you had seen it. This is one example:
http://www.bluechameleon.org/Photo%20&%20Image%20Stockpile%20-%20BCV/WEB%20-%20Bipes%20biporus.htm
If you need additional support at this time, please click "Reply", otherwise I thank you in advance for your "Accept".
How interesting...the legless lizard varieties described in this region of the country are all considered Truly Without Legs...if you have a photo, these groups would be interesting in hearing from you:
http://www.dgif.state.va.us/wildlife/species/display.asp?id=030009
http://www.dgif.state.va.us/wildlife/species/display.asp?id=030010
http://www.herpsofnc.org/herps_of_NC/lizards/Oph_att.html
They may be able to send you a file photo matching the snake you saw, if one is available, or confirm that you have seen a Unique and as yet Undescribed subspecies.
So cool!
Retired Veterinary Technician
Dog, Guinea Pig, Hamster, Gerbil breeder / Reptile Keeper / Bunny-Ferret-Exotic Specialist