in reply to reading certain lines
You don't have any lines with '/C1, 2(11)'.
Do you mean 'C1, 2(11)'?
my $pattern = 'C1, 2(11)'; while (<DATA>) { next if not /$pattern/; # do something with the line if it has $pattern }
Or does the line have to start with 'C1, 2(11)'?
next if not /^$pattern/;
--
Regards,
Helgi Briem
helgi DOT briem AT decode DOT is
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: reading certain lines
by harry34 (Sexton) on Jun 26, 2003 at 11:55 UTC | |
by chunlou (Curate) on Jun 26, 2003 at 12:27 UTC | |
by harry34 (Sexton) on Jun 26, 2003 at 13:42 UTC | |
by chunlou (Curate) on Jun 26, 2003 at 13:54 UTC | |
by harry34 (Sexton) on Jun 26, 2003 at 14:05 UTC | |
|