Hierl was born in Parsberg near Neumarkt in the Bavarian Upper Palatinate region, and attended secondary school (Gymnasium) in Burghausen and Regensburg. In 1893 he joined the Bavarian Army as a cadet.[1] He obtained the rank of lieutenant in 1895 and graduated from the military academy in 1902.