Pertly has 2 different meanings across 1 category:
Adverb
in an impudent or impertinent manner
"a lean, swarthy fellow was peering through the window, grinning impudently"
In a manner that is lively or high-spirited