in reply to Distinct field name output attempt

Unless I am missing something this should do it:
print "First:\n"; print "$_\n" for grep { /[^\s]/ } param("Data_One"); print "Second:\n"; print "$_\n" for grep { /[^\s]/ } param("Second_Part");
Note: In the grep I only test if the value contains something different than spaces. That logic is flipped to your code, but more natural for grep. It should do the same.


holli, /regexed monk/

Replies are listed 'Best First'.
Re^2: Distinct field name output attempt
by Anonymous Monk on May 17, 2005 at 15:57 UTC
    Thanks to all of you!