Craig A. Berry [Thu, 23 Nov 2006 16:11:16 +0000 (16:11 +0000)]
p4raw-id: //depot/perl@29362
read_file($cfg,
sub {
return if /^\#/ || /^\s*$/;
- return if $cfg eq 'configure.com' &&
- ! /^\$\s+WC "(\w+)='(.*)'"$/;
+ if ($cfg eq 'configure.com') {
+ s/\s*!.*$//; # remove trailing comments
+ return if ! /^\$\s+WC "(\w+)='(.*)'"$/;
+ }
# foo='bar'
# foo=bar
# $foo='bar' # VOS 5.8.x specialty