79252471

Date: 2024-12-04 19:23:32
Score: 1.5
Natty:
Report link

I dig the unless caller solution. It is very Perlish. However, here is a very direct comparable solution in Perl:

if (__PACKAGE__ eq 'main') {
    # ......
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: LARathbone