UPDATE: more detailed:print OUT unless (/phn_a/ .. /1ord/);
#!/usr/bin/perl use strict; use warnings; while (<DATA>) { print unless (/phn/ .. /1ord/); } __DATA__ black # input phn blue red green # 1ord yellow white
In reply to Re: extracting lines
by neniro
in thread extracting lines
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |