What elements of the Perl language could you use to
structure your code to allow for maximum re-use and maximum
readability?



What elements of the Perl language could you use to structure your code to allow for maximum re-us..

Answer / sagar girase

the element is keyword "sub"
means write the subroutines,
which allow maximum readability
and allow maximum-reuse

if want any other;
write the classes and package..

Is This Answer Correct ?    12 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

what is perl language?

0 Answers  


What is warn function in perl?

0 Answers  


When would `local $_' in a function ruin your day?

0 Answers  


How to count no of occurrence of a unique patterns in perl?

4 Answers   Ness Technologies,


What do the symbols $ @ and % mean when prefixing a variable?

1 Answers   Barclays,






you are required to replace a char in a string and store the number of replacements. How would you do that?

0 Answers  


What are the options that can be used to avoid logic errors in perl?

0 Answers  


Is perl compiler or interpreter?

0 Answers  


Why to use perl scripting?

0 Answers  


Explain '->' in perl?

0 Answers  


How to read a single line from a file in perl?

0 Answers  


my @array=('data1','data2'); my @array1=('data1','data2'); my ($i,$k); $i=7; $k=7; while($i){ $array [++$#array] = 'ree'; $i--; print "@array"; } while($k){ push(@array1,'ree'); $k--; print "@array1"; } Are these two while loop are doing the same functionality ? What may be the difference?

2 Answers  


Categories