in reply to Using map
map processes a list and returns a list, so you need to assign the list back to your @data array (or a new array).
@data = map { #? data is skiped when plotted if($maxreject[$i]) { $_ = "?$_" if($_ > $maxclip); } if($minreject[$i]) { $_ = "?$_" if($_ < $minclip); } $i++; } @data;
That said, a for loop might be a better choice, but it should work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using map
by maderman (Beadle) on Oct 22, 2002 at 06:19 UTC | |
by BrowserUk (Patriarch) on Oct 22, 2002 at 06:29 UTC |