Explain the default scope of variables in perl?


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

Post New Answer

More CGI Perl Interview Questions

write a script to display mirror image of a entered value and also check whether Palindrome

3 Answers   HCL, Persistent,


Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.

0 Answers  


Packing and Unpacking. Hi, I want to get output as 0x23400000345.... in the below example How to get? i tried out, but unable to get the answer $r=0x234; $t=0x345; $y=pack('L L',$t,$r); $x1=unpack('L!',pack('P',$y)); printf("\nThe value is $x1"); I didn't get constant output

1 Answers  


What are perl variables?

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  


Which functions in perl allows you to include a module file. State their differences.

0 Answers  


What are the logical operators used for small scale operations? Explain them briefly.

0 Answers  


How does polymorphism work in perl?

0 Answers  


What is a hash?

6 Answers   Photon, Satyam, Wipro,


If you want to empty an array then how would you do that?

0 Answers  


What does cgi program store?

0 Answers  


Categories