CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
please help me with a task

 



leonchik1976
New User

Dec 18, 2013, 9:53 AM

Post #1 of 4 (933 views)
please help me with a task Can't Post

I need to write script P2 that takes filenames as parameters, and print output (to screen) - one line for every filename that contains: name of a filename, one space, a mount of different words in a file.
in addition the output must be sorted in alphabetic order of filename.
the last line must contain names of filenames with the largest mount of words. the names have to be seperated by space, and sorted in alpabetic order
for example, there are several files that contains:
A B C K E
a a b ab ab ab 20 xyza abcd 1
b b a 5 4 6 200 xyz 2
3
4


after running P2 A B C K E, the output will be:
A 2
B 4
C 4
E 4
K 1
B C E


Kenosis
User

Dec 18, 2013, 10:24 AM

Post #2 of 4 (929 views)
Re: [leonchik1976] please help me with a task [In reply to] Can't Post

Is this a course assignment?


leonchik1976
New User

Dec 18, 2013, 10:25 AM

Post #3 of 4 (928 views)
Re: [Kenosis] please help me with a task [In reply to] Can't Post

no


Kenosis
User

Dec 18, 2013, 10:27 AM

Post #4 of 4 (927 views)
Re: [leonchik1976] please help me with a task [In reply to] Can't Post

Really? The link is to a document with the exact same problem given last spring, 21/03/2013.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives