Explain use of ‘my’ keyword in perl?
No Answer is Posted For this Question
Be the First to Post Answer
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 ?
Comment on the scope of variables in perl.
How many types of operators are used in the Perl?
In CPAN module, name an instance you use.
How would you replace a char in string and how do you store the number of replacements?
Explain the default scope of variables in perl?
Is there any way to add two arrays together?
What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?
What are stdin, stdout and stderr?
What are arrays in perl?
Write a simple regular expression to match an IP address, e-mail address, city-state-zipcode combination.
Explain the difference between my and local?