in reply to combining 2 files with a comon field

I think you are looking for split or -F on the command line (see perlrun) and then you can write out the things you want to a new file.

You can split on |

If you need an example after reading the split page and the open tutorial, just come back here with what you've tried ;-)

HTH.

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!
  • Comment on Re: combining 2 files with a comon field