in reply to Re^3: Command Line
in thread Command Line

like that?
my ($iFile, $oFile, $searchFor) = @ARGV; $searchFor = quotemeta( $searchFor || 'QUALIFIED_CLOCK ); .... next if $find_flag and /\s+$searchFor/;


holli, /regexed monk/

Replies are listed 'Best First'.
Re^5: Command Line
by guyov1 (Novice) on Oct 22, 2008 at 13:42 UTC
    The problem is that if I put a STRING, it will still delete me lines with QUALIFIED_CLOCK and not just lines containing STRING. I need it to do the following: If no STRING is inputted, skip lines with QUALIFIED_CLOCK, if is, keep lines with QUALI but skip lines with STRING.