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
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
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