Keyboard shortcuts

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

First script

#!/usr/bin/env perl
use v5.10;
use strict;
use warnings;

say 'Hello World';
  • #!/usr/bin/env perl - Path to perl interpreter

  • use v5.10; - Minimal version number of Perl, turn on new features. Same as use 5.010;

  • use strict; - Require variable declarations, avoid stupid mistakes.

  • use warnigs; - Ask for warnings. Avoid further stupid mistakes.

  • say - print with newline at the end