Etymology
Today it means: In a perverse manner. Full definition →
From perverse + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.