in reply to Underscore in scalar name not in main package

> I am researching why people run into problems with Perl and give up.

You should probably start a new thread for this.

My number one guess of frustration would be (de)referencing rules with sigils.

(The deeper reason is the transition from Perl4 to 5 and trying to piggy back new features while retaining almost full compatibility)

Update

For instance take pushing to a AoHoA passed as reference $arr

Compare Perl

vs JS

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

Replies are listed 'Best First'.
Re^2: Underscore in scalar name not in main package
by InfiniteSilence (Curate) on May 10, 2026 at 23:26 UTC

    My research involves scanning job lists for companies asking for help with Perl and drilling down into the company information to identify the nature of their need. Special attention is given to companies that indicate that they are switching away from Perl to another language. At that point I try and contact developers 'in the know' for what problems they experienced with Perl and perhaps get a reason for the change.

    What I am finding is that developers inherit the codebase from others that have left the position. They claim to try and learn the language and run into roadblocks. No one thus far has claimed that the sigils was too hard for them to understand. What I am hearing is a lot about classes.

    Celebrate Intellectual Diversity

      I didn't mean sigils as such but the whole duality of arrays and array_refs and the resulting grammatical overhead.

      For instance:

      If $arr was always an alias of \@arr and vice versa, you'd still have sigils but way less headache.

      > What I am hearing is a lot about classes

      I can imagine that, because Perl has a zoo of OO models.

      But I think most people already get frustrated at dereferencing before reaching OO.

      YMMV

      Anyway, I'd love to have one of those mission "impossible" legacy projects, just to prove what a real expert can achieve by cleaning it up.

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