in reply to parse array to replace specific spaces with pipes
Does that fix it?$sth->execute; open (OUTFILE, "> file.txt") or die "Cant open dat file : $!"; while (@row = $sth->fetchrow_array) { $_ =~ s/\s/\|/g; $_ =~ s/(.*)/|$1|/; print OUTFILE "@row\n"; } close OUTFILE;
Blessings,
~Polyglot~
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: parse array to replace specific spaces with pipes
by neurotoxx (Novice) on Jul 10, 2009 at 16:27 UTC | |
|
Re^2: parse array to replace specific spaces with pipes
by neurotoxx (Novice) on Jul 12, 2009 at 21:23 UTC |