in reply to Code style question

> P.S. So what's the right indent: 2 or 4?

The overall consensus is 4, your life will be easier if you start to C&P code then.

The "historic" default for "tab" was 8, so please use blanks.

update

see also older discussions (click "search") like recently [RFC] Review of module code and POD

especially this more complex model: TABs for indentation only, SPACE for alignment

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Code style question (updated)
by AlexP (Pilgrim) on May 21, 2021 at 07:25 UTC

    Thanks for the helpful links, going to explore them today.