I'm not sure using a very outdated CGI example as an illustration of why Perl is dying is all that convincing.
It says in the source article "you probably don’t want to use CGI for modern web development", then explains all the reasons why not, pointing you to modern frameworks such as Catalyst, Mojolicious and Dancer.
Not saying Perl doesn't have challenges with its popularity, but this isn't a very good case as to why it's dying.