What happens when you return a reference to a private variable?
No Answer is Posted For this Question
Be the First to Post Answer
How to turn on Perl warnings? Why is that important?
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.
What does next statement do in perl?
How can you define “my” variables scope in Perl and how it is different from “local” variable scope?
What?s your favorite module and why?
What is the peculiarity of returning values by subroutines in perl?
Comment on array slicing and range operator
What are the purpose of close(), getc() and read() functions?
How to renaming a file in perl programming?
What are numeric operators in perl?
How to connect with sqlserver from perl and how to display database table info?
What is 'commit' command in perl?