Re: Extracting email adresses from a flat text file

2002-11-14 Thread Paul Johnson
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 del

Re: Extracting email adresses from a flat text file

2002-11-14 Thread Jean Padilla
try this: #!/usr/bin/perl -w use strict; my $if = "path_to_input_file"; my $of = ">path_to_output_file"; my ($name, $addr); open(IF, $if) or die "Can't open file $if for reading\n"; open(OF, $of) or die "Can't open file $of for writing\n"; while () { chomp; (undef,$name,undef,undef,undef,unde

RE: Extracting email adresses from a flat text file

2002-11-14 Thread wiggins
perldoc -f open perldoc -f split That's a push in the right direction ;-), but not a very hard one. http://danconia.org On 14 Nov 2002 14:41:08 +0200, Leon Dippenaar <[EMAIL PROTECTED]> wrote: > Can anybody just give me a quick example of how on