Tim207:
Why wasn’t Judah punished for sleeping withTamar?
Apart from the story not being historical, it is set prior to the introduction of the Mosaic law, and apart from Judah's personal affront to her prostitution in the story, there is no indication in the Bible of a former prohibition against temple prostitutes (as which Tamar supposedly disguised herself).
Aside from that, the only prohibitions in the Mosaic law about prostitution are that fathers could not make their daughters prostitutes, priests could not marry prostitutes and their daughters could not be prostitutes, and temple prostitutes were forbidden. There is no prohibition at all against prostitutes generally, and prostitution was frowned upon but generally tolerated in Judea.