Explain use of ‘my’ keyword in perl?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More CGI Perl Interview Questions

while(my($key, $value) = each(%hash) ) { print "$key => $value\n"; } my($key, $value); while(($key, $value) = each(%hash) ) { print "$key => $value\n"; } What is the different between these two code in case of "my" usage ?

1 Answers  


Comment on the scope of variables in perl.

0 Answers  


How many types of operators are used in the Perl?

0 Answers  


In CPAN module, name an instance you use.

0 Answers  


How would you replace a char in string and how do you store the number of replacements?

2 Answers  






Explain the default scope of variables in perl?

0 Answers  


Is there any way to add two arrays together?

0 Answers  


What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?

1 Answers  


What are stdin, stdout and stderr?

0 Answers  


What are arrays in perl?

0 Answers  


Write a simple regular expression to match an IP address, e-mail address, city-state-zipcode combination.

15 Answers  


Explain the difference between my and local?

2 Answers  


Categories