in reply to My First LinkedIn Article On Perl

This language is common in Indian English:
since quite a few years
The more global way to say it is:
for quite a few years.

Please fix typo:
(at least the once I use)
should be
(at least the ones I use).

Update 1
Re:"Perl Regular Expressions are really tough" :
you could offer a link to https://regex101.com/ - a site that enables you to develop an debug (perl compatible) regex (PCRE).

I would simplify your "get_info" calling sequence and example to:

#CALLING sequence get_info ('first_name' => 'John', 'last_name' => 'Doe'); #Implementation: sub get_info { my %param = @_; die "ERROR: First-name is required" unless $param{first_name}; die "ERROR: Last-name is required" unless $param{last_name}; print "Your name is $param{first_name} $param{last_name}\n"; }

                "Imaginary friends are a sign of a mental disorder if they cause distress, including antisocial behavior. Religion frequently meets that description"

Replies are listed 'Best First'.
Re^2: My First LinkedIn Article On Perl
by pritesh_ugrankar (Monk) on Jan 03, 2021 at 16:02 UTC

    Hi,

    Thank you for your valuable inputs. I've done the grammatical edits per your suggestion.

    However, I've kept the function same as before. That's because with a reference, even if I miss an argument in the calling function, it still executes. By using that, I wanted to show how Perl allows optional arguments.

      I don't understand what you mean by
      "even if I miss an argument in the calling function, it still executes"

      How is that behviour different than passing the hash (without a reference) ?
      Can you illustrate what you mean by an example?

                      "Imaginary friends are a sign of a mental disorder if they cause distress, including antisocial behavior. Religion frequently meets that description"