in reply to Re: Substituting '--' for Nulls
in thread Substituting '--' for Nulls
For those who aren't comfortable with map, this is about the same as:my @results_tmp = map {($_ ne "") ? "$_" : "--"} @results; print join(",", @results_tmp),"\n";
my @results_tmp = @results; ($_ eq "") && ($_ = "--") for @results_tmp; print join(",", @results_tmp),"\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Substituting '--' for Nulls
by Abigail-II (Bishop) on Aug 13, 2002 at 12:40 UTC | |
|
Re: Re: Re: Substituting '--' for Nulls
by Anonymous Monk on Aug 13, 2002 at 12:42 UTC |