How to read multi lines from a file in perl?


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

Post New Answer

More CGI Perl Interview Questions

How can you create anonymous subroutines?

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 the closure in PERL?

0 Answers  


What is the use of '>>' in perl?

0 Answers  


How to read a file into a hash array?

0 Answers  


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

0 Answers  


What is goto statement in perl?

0 Answers  


How do you give functions private variables that retain their values between calls?

0 Answers  


How to make the following assignment, as arrayreference assignment ? my $arr_ref='[1,2,3,4,4,'elem']';

2 Answers  


How can you create an object of a class in a package?

4 Answers   IBM,


Can inheritance be used in perl?

0 Answers  


Why to use perl scripting?

0 Answers  


Categories