in reply to Re: My First LinkedIn Article On Perl
in thread My First LinkedIn Article On Perl

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.

Replies are listed 'Best First'.
Re^3: My First LinkedIn Article On Perl
by NetWallah (Canon) on Jan 04, 2021 at 04:47 UTC
    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"