Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?


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

Post New Answer

More CGI Perl Interview Questions

Try pattern matching for the following: 1) 10.111.23.11 2) /root/abc/cde/fgg/ac.xml --> Get file name without extention. 3) /root/abc/ac.xml/fgg/ac.xml --> Get file name without extention. 4) What does "DIE" meant in PERL? 5) chomp 6) "This is saturday" --> Print the weekday number. 7) 11-2-2009 --> Print the name of the month. 8) Reverse the string without using func in C.

2 Answers  


Write an example explaining the use of symbol tables.

0 Answers  


What's the difference between /^Foo/s and /^Foo/?

0 Answers  


What are the advantages of c over Perl?

0 Answers  


How to check the status of airplane mode (enable/disable) in perl for Android mobile?

0 Answers  






Explain the difference between "my" and "local" variable scope declarations. ?

0 Answers   HCL,


You want to download the contents of a url with perl. How would you do that?

0 Answers  


What does the q{ } operator do?

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  


Can inheritance be used in perl? Explain with the help of an example.

0 Answers  


What syntax is used for grep() function?

0 Answers  


Which of these is a difference between Perl and C++ ?

0 Answers  


Categories