Answer Posted / sourisengupta
You can consider "my" as local and "local" as global
variable like C,C++.
The scope of "my" lies between the block only but if we
declare one varable global then we can asccess that from
the outside of the block also.
| Is This Answer Correct ? | 2 Yes | 7 No |
Post New Answer View All Answers
Why is it hard to call this function: sub y { "because" } ?
What is v-strings?
Mention what is cpan?
Explain the arguments for perl interpreter.
Write a script to reverse a string without using perl's built in functions?
Explain returning values from subroutines?
Explain use of ‘my’ keyword in perl?
How to turn on Perl warnings? Why is that important?
Explain socket programming in perl?
What is posix in perl?
How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.
You want to print the contents of an entire array. How would you do that?
what is CPAN?
What are the different string manipulation operators in perl?
How to do comment in perl?