in reply to Simple Perl, to get me started.
The best way to learn is to do. If we just give you the answer you haven't learned anything.
You know you have to combine these two scripts, because the first uses command line arguments to do something else and the second has a nice loop you could use.
So just do it. Try to take from both scripts the things you need and then add inside the loop some way to remember the longest string that you see. If it doesn't work, show us what you got and we will help you from there.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple Perl, to get me started.
by ww (Archbishop) on Oct 27, 2010 at 21:49 UTC |