Answer Posted / mahendra ratnakar
The variables declared with "my" can live only within the
block it was defined and cannot get its visibility
inherited functions called within that block, but one
defined with "local" can live within the block and have its
visibility in the functions called within that block.
| Is This Answer Correct ? | 12 Yes | 4 No |
Post New Answer View All Answers
Explain the meaning of perl one-liner?
What is epoch time in perl?
What are the options that can be used to avoid logic errors in perl?
How do I read command-line arguments with Perl?
Explain about typeglobs?
What are prefix dereferencer? List them.
How to open a directory in perl?
What is the difference between perl list and perl array?
Which operator in perl is used for the concatenation of two strings?
Who created perl?
What does init 5 and init 0 do?
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
How will you create a file in perl?
How to print escaping characters inside a string in perl?
What are scalar data and scalar variables?