Leon Dippenaar said: > Can anybody just give me a quick example of how one would go about doing > this? I am on the verge on insanity and I might already be over that > edge. > > The input file contains names and email addresses. > > The output file with all the names & addresses must be comma delimited > and listed one address per line > > input looks like this : > 0001616 | the hospital | box 11667 | selcourt | mulbarton | 1733 | > [EMAIL PROTECTED] > > output must look like this > > the hospital , [EMAIL PROTECTED] > > Please someone merciful :-) > > Any examples , or a push in the right direction would be greatly > appreciated..
The push in the right direction is towards split. The example is: perl -anwF'[¦]' -e 'print "$F[1],$F[-1]\n"' but I suggest against just using it without understanding it. perldoc -f split perldoc perlrun -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]