Peru has announced that it will ban homosexuals from the police force for damaging the image of the institution.
The law is one of several new regulations put forward by the Interior Minister, Mercedes Cabanillas.
But critics say some of the new laws, especially those regarding sexual orientation or activity, are unconstitutional.
BBC News website readers around the world have been sending their comments about this measure.
I am Peruvian and live in the US. I respect the current President Alan Garcia's government and although I'm not a supporter of his party, I think he is doing a good job with the economy and democracy. Mr Garcia is trying to bring the country forward to a position of leadership in Latin America and the world. But Ms Cabanilla's position is taking Peru backwards, to the level of a third world country. Present-day societies respect people no matter their race, religion or sexual orientation. I think it is ridiculous that, in the 21st Century, there are still educated people who can think in such a medieval and out of date way. Peru is making progress, let's allow it to make progress mentally as well.
Jose R Rivera, Stamford, CT, USA
How disappointing that a wide ranging and quite dramatic overhaul of the Peruvian police force is summarised in this way. Many Peruvians see these changes as a step in the right direction and hopefully a chance for a much maligned institution to reform itself. To focus on the one small area of not accepting homosexual police officers is a poor way to report a much larger issue.
Spencer Bailey, Lima, Peru
I really think this people are going backwards and it's silly...
Pascual Sotomayor, Santiago, Chile
The great majority of people in Peru have to live with daily corruption and the various levels of brutality from the police. The last thing they would worry about is one man perhaps being intimate and loving with another man. Corruption, not affection or sexuality, makes lives in Peru miserable. Ms Cabanillas' law may do nothing more than just embarrass Peru internationally... another shame for the great people of that country.
Damian Graham, Glasgow, Scotland, UK
What does enforcing the law have to do with sex?
Ryan Mahon, Washington DC, USA
Ridiculous. Another step backwards. Only a police force truly representative of the population can hope to be respected and not hated. How insulting to gay Peruvians!
It's a great idea, it will improve the public confidence in the police, people in Peru have different views on gays, as they are mostly Catholics. So to be honest, it's not up to us to argue otherwise.
Anonymous, Whitehaven, UK
This is the stupidest thing I have every heard, does this minister know much about her job. It's not going to work because not every person that's gay or cheating will tell everyone.
Lloyd, Toronto, Canada
Very enlightened!(sarcasm intended)
Dickerson3870, Atlanta, Georgia USA
That regulation will let Peruvian people believe in the police force, because they will be an example for the nation. I am really sure that the population will collaborate with the police since the beginning.
Omar Widdup, Provo, Utah, USA
Governments that are unable to provide basic services to their citizens all too often turn to bigotry and distraction to shift the blame from themselves. This decision is an embarrassment to Peru and her citizens. They deserve better than a corrupt police force overseen by a bigoted minister.
Casey Foster, Fort Worth, Texas, USA
The integrity of a police force depends not on which gender its members have sex with, but on their honesty, competence and devotion to upholding public welfare. Therefore, banning gays will not in any way improve the quality of the police force but will in fact damage it by rejecting individuals who are otherwise qualified.
Edward Pechet, Boston, USA
Gay people are discriminated against in every country. We are unpopular, and that means that our rights in society are tenuous at best. Although it may change for future generations, our time has not yet arrived. It is not "traditional machismo" as much as poor education and just old fashioned bigotry, and that exists in European countries as well as in Latin and North America. This woman may believe that she has gained "power" through her position, however I believe she actually represents the weakest among us.
Robert Widi, Oakland, California, USA
Gay rights are human rights. I thought Peru was a bit more advanced than this. Tourists beware! Give Peru a miss!
Dave Holtsman, Vancouver, Canada