I wouldn't say its "missing" named function arguments. Treating arguments and return values as lists is very powerful. Perl is very Lisp-like in that aspect.
Also, CPAN is considered one of Perl's strengths. How did CPAN cause Perl to burn out?
10 karma · joined July 27, 2021
Also, CPAN is considered one of Perl's strengths. How did CPAN cause Perl to burn out?
However, if you are saying no one should use CGI.pm, then I agree. That module is a bloated mess. Much more efficient ways to use CGI without that thing.
All I need is magic structs with methods and that provides it. Throw in a constant array of properties and an AUTOLOAD, and you have accessors if you need it.
I usually end up always wrapping the json_decode in an eval to catch the error and handle it in an easier to understand fashion.
But I agree though, its nice how json and perl data objects pretty much map to each other. It's great.
my $house = shift;
my $color = shift // GetDefaultHouseColor();