How can you define “my” variables scope in Perl and how it is different from “local” variable scope?


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

Post New Answer

More CGI Perl Interview Questions

How to read a file into a hash array?

0 Answers  


What is the tk module?

0 Answers  


Explain the difference between declarations of 'my' and 'local' variable scope in perl?

0 Answers  


You want to print the contents of an entire array. How would you do that?

0 Answers  


Explain subroutine?

0 Answers  


What are the steps involved in configuring a server using cgi programming?

0 Answers  


Define print() function in perl?

0 Answers  


What are the benefits of perl in using it as a web-based application?

0 Answers  


How do you you check the return code of a command in perl?

0 Answers   HCL,


What is the use of strict?

0 Answers  


Consider the following example #! /bin/perl use strict; sub sample { my @arr=(1,2,3,4); return @arr; } my ($a,$b,$c,$d) = &sample; print "$a\n$b\n$c\n$d\n"; In the above code, How can I get the $c without using the arguments such as $a,$b. I don't want to use any array to get the return values.

2 Answers  


What is confess function in perl?

0 Answers  


Categories