(CNN) - A new poll indicates that voters in Pennsylvania approve of the new controversial Arizona immigration law by a nearly two to one margin.
According to a Quinnipiac University survey released Tuesday, 52 percent of registered voters in the Keystone State approve of the measure, with 27 percent opposed.
Forty-seven percent of people questioned in the poll say they want Pennsylvania to adopt a similiar immigration law, with 34 percent opposed. Six out of ten say they think the federal government's lawsuit to block implementation of the measure is a bad idea, with 27 percent backing the Justice Department's legal action.
The survey also indicates that by a 44 percent to 39 percent margin, Pennsylvania voters do not think the Arizona law will lead to discrimination against Hispanics. The margin is just within the poll's sampling error.
According to the survey, more than seven out of ten say that immigration reform should move more in the direction of stricter enforcement rather than a push for to give illegal immigrants legal status.
"Pennsylvanians like the Arizona law and don't like President Obama's decision to ask the courts to throw it out. In fact, a plurality would like to see a similar law in their own state," says Quinnipiac University Polling Institute assistant director Peter Brown.
The law, which is scheduled to take effect at the end of July, requires immigrants to carry their alien registration documents at all times and allows police to question the residency status of people in the course of enforcing another law. It also targets businesses that hire illegal immigrant laborers or knowingly transports them.
The survey also indicates that Pennsylvania Attorney General Tom Corbett, the Republican nominee for governor, holds a 44 percent to 37 percent lead over Allegheny County Executive Dan Onorato, the Democratic nominee, with 18 percent undecided. Indepedents questioned say they back Corbett by a 15-point margin. The two candidates are fighting to succeed Democratic Gov. Ed Rendell, who is term limited and prevented from running for re-election this year.
The Quinnipiac University poll was condcuted July 6-11, with 1,367 Pennsylvania voters questioned by telephone. The survey's overall sampling error is plus or minus 2.7 percentage points.
–Follow Paul Steinhauser on Twitter: @psteinhausercnn