Perl Programming Question: Download Questions PDF
What value is returned by a lone return; statement?
![Perl Programming Interview Answer Perl Programming Interview Question](https://globalguideline.com/public/images/interview/27.png)
Answer:
The undefined value in scalar context, and the empty list value () in list context.
This way functions that wish to return failure can just use a simple return without worrying about the context in which they were called.
This way functions that wish to return failure can just use a simple return without worrying about the context in which they were called.
Download Perl Programming Interview Questions And Answers
PDF
Previous Question | Next Question |
How do you find the length of an array? | What is the difference between /^Foo/s and /^Foo/? |