http://www.perlmonks.org?node_id=180217


in reply to capture strings

Best to provide some sample data..
Oh you did, use html tags to markup the question, then ;)

nnn//elele/file/log.cxx:log_lu.cxx
nsn//els/fil/log.cxx:# log file

So something like;
my @log_files= grep{ !/#/ }(<I>);

--

Brother Frankus.

¤