-imranmy $inComment = 0; while(<>) { next if $inComment; s|//.*$||; # remove // comments s|/\*.*?\*/||; # remove /*..*/ comments s|^.*\*/|| and $inComment = 0; s|/\*.*$|| and $inComment = 1; # do your pattern matching on $_ here }
In reply to Re: avoiding a particular character or set of characters
by CountOrlok
in thread avoiding a particular character or set of characters
by neeha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |