Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: My First LinkedIn Article On Perl

by pritesh_ugrankar (Monk)
on Jan 03, 2021 at 16:02 UTC ( [id://11126210]=note: print w/replies, xml ) Need Help??


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"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11126210]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found