while (<DATA>) { ... if (/UNX|WNT|COMPONENT/ .. /$target_os/) { ... } }
See perlop for details on the flip-flop operator.
But without having a textual description of what your program does it seems hard for me to check if that does what you want.
In reply to Re: Looking for less code
by moritz
in thread Looking for less code
by Sun751
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |