![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ftp code in Perl | Raynon | Shell Programming and Scripting | 21 | 09-11-2008 03:44 AM |
| PERL Code | talashil | Shell Programming and Scripting | 2 | 06-06-2008 01:13 AM |
| need help to write perl code | getdpg | Shell Programming and Scripting | 0 | 09-20-2006 09:24 AM |
| Perl running C code | gdboling | Shell Programming and Scripting | 1 | 09-02-2003 06:43 PM |
| Perl Code Hiding | sskb | Shell Programming and Scripting | 5 | 01-02-2002 02:21 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
perl code help
if anyone knows how to do the loop and the function listed, please let me know it would be a great help. Thanks!
•Create an array NUM with the following ten values in it: 14, 25.6, 43, 22, 412.14, 819, 2, 721, 7.218, 11.9 •Print the array NUM •Create an array COLOR with the following ten values in it: blue, green, red, purple, brown, yellow, black, orange, maroon, gray •Print the array COLOR •Using a loop, create an array STRING where each element of the STRING array is the concatenation of the elements in the respective indexes of COLOR and NUM. (Example, STRING[0] would contain "blue14". •Print array STRING •Write a function that will determine whether the number given is <50, between 51 & 500, or >500, and return a string "Less than 50", "Between 50 and 500", or "Greater than 500" back |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|