This seems to work.
To make it portable, you may need to replace ; with a newlinesed 'N;s/\n/ /' list.txt
Update: indeed, this is a wrong solution. I didn't read the OP carefully. Sorry.
Update: \n is said to be portable.
In reply to Re: help writing simple perl script
by ambrus
in thread help writing simple perl script
by ashylarry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |