Then python is read-only. Think of it.
Both have a shebang line, and after that import (use) lines. Perl’s are mostly optional – for sysadmin stuff you’re usually just doing your boilerplate strict and warnings. Of course, even that is optional. Technically anyway. For python, you need to import something to do absolutely anything. Which is okay – it shows you what is being used.
Then on to the real work. In perl, you start out with the program. It’s right there. If you want to see the logic, just open the file – it’s usually at the top. Python is the opposite – you have to declare your objects and functions higher up in the file before you can use them. I couldn’t say you have to declare them before you use them because in practice you’re coding along and think “hey, this should be a function” and zoom down a bit and add it, then go back to the logic. You’re still doing them before.
So you have your listing of objects and functions somewhere, and the actual program logic somewhere. But this shows one difference between the two.
Perl cares about doing things. Python cares about defining things.