use v5.14; my $noOfLines = `grep ^# testFile|wc -l`; chomp($noOfLines); if ($noOfLines){ <doSomething> }
In reply to Re: A fast way to do this?
by gurpreetsingh13
in thread A fast way to do this?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |