I've used both quite a lot. I'd always choose Python not Perl. The only reason I'd touch Perl is if I need to maintain someone else's code, or if I'm being paid specifically to use Perl.
Python is very handy for that kind of thing, anything that is just a bit too complex to do easily with a batch file.
Perl is an okay language, but is spoilt by the culture of developing in it, which is often about writing compact code, using various shortcuts or symbols, and it has loads of wacky syntax that is a nightmare to read, so people often don't write easy to understand code.
Python forces you to write readable code, and much of it is pretty understandable even if you don't use Python much, which whilst it isn't everything, is a good start.
They are both equally powerful nowadays, so it's mainly just about preferences & who/what you want to work with.
Joe