Write the program to process a list of numbers.



Write the program to process a list of numbers...

Answer / Naval Kumar Singh

@numbers = (1, 2, 3, 4, 5); @sorted_numbers = sort @numbers; print join(", ", @sorted_numbers)."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

What is chomp() operator/function?

1 Answers  


What does a die() function do in perl?

1 Answers  


What is warn function in perl?

1 Answers  


How to determine strings length in perl?

1 Answers  


how to create a flat file database as shown below s.no name age city phone 0 hema 22 Calcutta 4312542 1 hema 21 Bangalore 2344345 2 ganesh 25 delhi 2445454 3 kartik 45 pune 4312121 4 santosh 25 Hyderabad 2254231 5 kumar 25 mysore 2344567 6 gita 34 mangalore 6532123 7 gita 32 pune 2213456 Q1.print the details of the person who r from bangalore q2.Replace the city name managlore to pune q3.prints no of person having name gita and hema q4.print how many are of age 25.

1 Answers  


What is the difference between perl array and perl hash?

1 Answers  


What is the difference between exec and system?

1 Answers  


What does cgi program store?

1 Answers  


How will you open a file in a write-only mode in perl?

1 Answers  


Explain goto name?

1 Answers  


Why should I use the -w argument with my Perl programs?

1 Answers  


What are the steps involved when the cgi program starts running?

1 Answers  


Categories