What happens when you return a reference to a private variable?


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

Post New Answer

More CGI Perl Interview Questions

How to turn on Perl warnings? Why is that important?

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 does next statement do in perl?

0 Answers  


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

0 Answers  


What?s your favorite module and why?

3 Answers  






What is the peculiarity of returning values by subroutines in perl?

0 Answers  


Comment on array slicing and range operator

0 Answers  


What are the purpose of close(), getc() and read() functions?

0 Answers  


How to renaming a file in perl programming?

0 Answers  


What are numeric operators in perl?

0 Answers  


How to connect with sqlserver from perl and how to display database table info?

0 Answers  


What is 'commit' command in perl?

0 Answers  


Categories