in reply to Re: Re: recursive join
in thread recursive join
Firstly, you don't need to reference $_ for the m// or the s///, as it is the default. Second, you can capture the bit you want in the m//. It's also better to use a different delimiter if you have /'s in your regex
should capture everything after the first space after the '=' and before the trailing '/'. If the number of spaces might vary thenpush @array, $1 if m[^FOO\s=\s(.*?)/$];
push @array, $1 if m[^FOO\s+=\s+(.*?)/$];
This wouldn't harm if there is only one space before and after.
Examine what is said, not who speaks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: recursive join
by Anonymous Monk on Dec 21, 2002 at 15:04 UTC | |
by BrowserUk (Patriarch) on Dec 21, 2002 at 15:10 UTC |