How will you get the count of parameters passed to a perl subroutine?
Answer / Ram Pravesh Sahni
In Perl, you can use the built-in $# function to get the number of arguments passed to a subroutine. The $# argument variable holds the number of positional parameters (arguments) that have been passed to the current subroutine.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is perl compiler or interpreter?
How do you you check the return code of a command in perl?
write a perl script to find whether a given line of text is starting and ending with same word or not ???
How to check the status of airplane mode (enable/disable) in perl for Android mobile?
In CPAN module, name an instance you use.
How can we create perl programs in unix, windows nt, macintosh and os/2 ?
what is CPAN?
What is perl unshift array function?
Which guidelines by Perl modules must be followed?
Differentiate use and require?
What is the use of command “use strict”?
Why do we use "use strict" in perl?