in reply to Re: Re: recursive join
in thread recursive join
Basically, the only real change for efficiency is to do the replace once instead of twice. The rest is style, though style counts. I might suggest, though, making the first one a bit less strict, something likeif (s/^FOO =\s//){ s/\\$//; push @array, $_; }
So it doesn't matter if there's more than one space, or a tab, or...whatever. But that's for your code to do with as it will.if (s/^FOO\s*=\s*//){
|
|---|