How are parameters passed to subroutines in perl?



How are parameters passed to subroutines in perl?..

Answer / Abhinav Kukreti

In Perl, parameters can be passed to subroutines using three methods: by value (using the default pass-by-value mechanism), by reference (using the ampersand (&) symbol before the subroutine name), and by calling lists (a comma-separated list of values enclosed in parentheses).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

How to determine strings length in perl?

1 Answers  


Explain the arguments for perl interpreter.

1 Answers  


what r the future opportunities in PERL/LINUX after 3 years ??

3 Answers  


Who created perl?

1 Answers  


What are perl array functions?

1 Answers  


Write a script for 'count the no.of digits using regular expressions in perl..

6 Answers   AppLabs,


how to extract pin_code,phone_number,year from text file using regular expressions in perl

1 Answers  


I have created a CGI-based page,after entering all the values in to the fields, How to get the output on the web browser using Perl

4 Answers  


How do I sort a hash by the hash value?

1 Answers  


Why to use perl scripting?

1 Answers  


how to find a substring in a string without using substr built in functions, and print the substring found

3 Answers   Nokia,


What are numeric operators in perl?

1 Answers  


Categories