in reply to Re: Regex for simple parsing job
in thread Regex for simple parsing job
Although I like a spicy regex as much as the next guy, I think that the use of the flip-flop operator, as pointed out by pbeckingham and diebyz is much more elegant and (probably) more efficient, since it allows you to avoid slurping the file that is being parsed.
The 'scalar range' / 'flip-flop' operator is one of the sweetest pieces of syntactical sugar that Perl offers, if you ask me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex for simple parsing job
by toadi (Chaplain) on Jul 27, 2004 at 13:45 UTC |