Perl Programming quiz, level Advanced, question 17
| Question: | If you declare a subroutine specifying sub demo () { (etc) } then: |
| Answer 1: | Subsequently compiled calls to it must not have any parameters This was the CORRECT answer |
| Answer 2: | The () brackets are redundant in the call |
| Answer 3: | A separate instance of the subroutine is created each time it is called |
| Answer 4: | It creates its own variable space, in the package with the same name as the subroutine name |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|