in reply to Re: Re: Re: Re: Re: Reducing a line read into $_
in thread Reducing a line read into $_
I'd be interested in hearing why you think your solution is better than ^\[.*?\]. I think that the non-greedy "?" eliminates all of the potential .* issues in this case.
Of course, I haven't benchmarked the solutions yet.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Re: Reducing a line read into $_
by repson (Chaplain) on Jan 04, 2001 at 17:42 UTC |