New Novice has asked for the wisdom of the Perl Monks concerning the following question:
I have a file (using new line as a delimiter) that is at the moment storing each kind of information twice. Naturally, I would like to get rid of all duplicates. They come in bundles, so I was thinking of just reading out every second line using a loop and storing this in a new file.
My questions:
1. Is there a regular expression for "even number"/"uneven number"?
2. What is the code for "end of file"?
3. Is there a module that could do it (although I prefer to keep things simple)?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Even and uneven numbers as RegEx
by broquaint (Abbot) on Sep 27, 2004 at 11:30 UTC | |
|
Re: Even and uneven numbers as RegEx
by grinder (Bishop) on Sep 27, 2004 at 12:26 UTC | |
|
Re: Even and uneven numbers as RegEx
by zejames (Hermit) on Sep 27, 2004 at 11:31 UTC | |
by davorg (Chancellor) on Sep 27, 2004 at 11:43 UTC |