How to sort arrays in perl?



How to sort arrays in perl?..

Answer / Tanush Pandey

To sort an array in Perl, you can use the 'sort' function. Here's an example: @array = sort @array;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

What is v-strings?

1 Answers  


Create a function that is only available inside the scope where it is defined ?

1 Answers  


What is Perl?

1 Answers  


How to prevent file truncation in perl?

1 Answers  


What is the closure in PERL?

1 Answers  


what r the future opportunities in PERL/LINUX after 3 years ??

3 Answers  


In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?

1 Answers  


Write a simple regular expression to match an IP address, e-mail address, city-state-zipcode combination.

15 Answers  


how to find a substring in a string without using substr built in functions, and print the substring found

3 Answers   Nokia,


How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?

1 Answers  


What are the steps involved in configuring a server using cgi programming?

1 Answers  


What are scalar data and scalar variables?

1 Answers  


Categories