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 different types of data perl can handle.
Explain subroutine?
What are arrays in perl?
What is v-strings?
In CPAN module, name an instance you use.
You want to connect to sql server through perl. How would you do that?
Explain the execution of a program in perl.
Which has highest precedence in between list and terms? Explain?
Explain cpan?
How to copy a file in perl?
How can you create anonymous subroutines?
What is the purpose of “_file_ literal” and “_line_ literal” in perl?
Explain the difference between declarations of 'my' and 'local' variable scope in perl?
What does -> symbol indicates in Perl?
How to dereference a reference?