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
How can you use Perl warnings and what is the importance to use them?
Comment on the scope of variables in perl.
Explain grooving and shortening of arrays and splicing of arrays?
What is perl I used for?
How does polymorphism work in perl?
When does circular reference occur?
What is the use of -t?
How can memory be managed in Perl?
How the interpreter is used in Perl?
What are the benefits of perl in using it as a web-based application?
How do I sort a hash by the hash key?
Why to use perl scripting?
What are the options that can be used to avoid logic errors in perl?
How do I debug a perl program?
What is the difference between die and exit in perl?