The command line should be of the form: CODENAME INPUTFILE OUTPUTFILE STRING so my code will edit INPUTFILE, print the result to OUTPUTFILE and replace "QUALIFIED_CLOCK" with STRING. Thanks!#!/usr/intel/bin/perl use warnings; use strict; my $find_flag; #using a flag variable while ( <> ){ if (/^\S/){ #match a line that start wit +h no space if (/^\w+clk\[\d+\]/){ #match requested headline $find_flag = 0; } else{ $find_flag = 1; } } next if $find_flag and /\s+QUALIFIED_CLOCK/; #skips the line req +uested print qq{$_}; #printing ordinary +line }
In reply to Command Line by guyov1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |