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

Autoincrement

use v5.44;

my $auto_id = 0;
sub increment($thing, $id = $auto_id++) {
    say "$thing has ID $id";
}

increment("table");
increment("chair");
increment("window", 10);
increment("doo0r");