r/perl•
oddnos

Best way to organise perl programs.

I'm a beginner Perl programmer and I'm wondering if there is a standard or best practise when it comes to organising code.

Coming from the .Net world, I am used to spreading my code across multiple class files. With Perl I am finding my files begin to look fairly messy and complicated, especially with the overall aesthetic of the language itself.

What does the Perl community generally do? Split functionality into modules and use them in the main script file?

Posted Dec 18, 2021, 3:24 PM UTC

2319
Loading comments…