Over the years, I've gotten into a few habits when I write Perl. This is a description of my style when I code. It isn't necessarily the best way, but it's the way that I've grown comfortable, and it makes it easier for me to read my code. There are several other guides to Perl style. There are various other sources on the web. Programming Perl [WALL00] also discusses Perl style. When it comes down to it, everyone has their own style. If you're new to Perl, it's probably worth reading about other people's styles, just to familiarize yourself with the issues involved.
So I'll go over the way I code, and hopefully, you'll find it helpful. But of course, as Glenn Vilppu would say,
No rules. Only tools.