in reply to Re: use strict and -w
in thread use strict and -w
Or, instead of grabbing what you want, just get rid of (or substitute) what you don't want (don't neglect the space after (Unknown) if you do want such an attribution):
while(<FILE>){ $_ .= '-- (Unknown) ' unless /--/; s/^\s+//; s/\s+$/\n/; s/\s*--\s*/\t/; print; }
|
|---|