in reply to Restricting fields
You could also modify your for loop, which has the advantage of specifying exactly which array elements to bypass, as well as skipping multiple things. Or just check for the last item, or do both:
$x=0; for $field (@fields) { next if $field =~ /[modified|META|WhateverYouWant]/; last if $x==$#fields; ## or just this print<<"HTML"; <TR BGCOLOR="#e0e0e0"> <TD>$fs<B>\u$field:</B>$fc</TD> <TD><INPUT TYPE="TEXT" NAME="$field" VALUE="$field_vals[$x]" SIZ +E="40"></TD> </TR> HTML $x++; } # End of foreach.
|
|---|