in reply to capturing names
It looks like you wanted to comment out the last part of line 2 with #. So you could try removing the comment before you parse the line:
.dave.
this should give you:$line2 =~ s/#.*$//;
--$hold1 = cn_commonsw_libs.bld; $hold2 = ""; # empty
.dave.
|
---|
In Section
Seekers of Perl Wisdom