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.
In reply to Re: Simple Perl, to get me started.
by jethro
in thread Simple Perl, to get me started.
by Lust69
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |