First script with main function
#!/usr/bin/env perl
use v5.10;
use strict;
use warnings;
sub main {
say 'Hello World';
}
main();
- Putting all your code in small(!) functions will make your code better.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
#!/usr/bin/env perl
use v5.10;
use strict;
use warnings;
sub main {
say 'Hello World';
}
main();