in reply to Using map

Your map is in void context, it is not used for anything but a fancy loop. I think the logic of the @maxreject array is flawed, but I'm not sure what you're trying to accomplish with it.

I suspect you want (split ' ') where you break a line into an array.

Update: Ah, in that case, I'd keep an array of the column indexes to tag (supposing there may be more than one) and do this:

my @tagthese = (4,5,6); # ... down in the read loop for (@data[@tagthese]) { $_ = '?' . $_ if $_ < $minclip or $_ > $maxclip; }

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Using map
by maderman (Beadle) on Oct 22, 2002 at 06:34 UTC
    The idea behind the @maxreject array is that is a user to rejects values associated with a column, they click a checkbox on the form and the value for that column becomes true. If the value is greater or less than a user-defined value, the value of the column is flagged.
    Stacy.