use strict; use warnings; my @list; open (FH, 'sample.txt') || die; while (<FH>) { push @list, $1 if m/^(.+?):/; } print "@list";
In reply to Re: Parsing in perl?
by TJPride
in thread Parsing in perl?
by perllearner007
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |