On Tue, Nov 3, 2009 at 4:33 PM, tom smith wrote:
> Thanks for the tips! More comments below.
> I saw it written the other way somewhere, and I thought it looked cleaner.
> I'll do it your way from now on.
>
>
>>
>> if ($line =~ /\((.*?)\)/) {
>>>
>>>$line =~ s/$1/$i;$j/;
>>>
>>
>> If
Thanks for the tips! More comments below.
On Tue, Nov 3, 2009 at 4:10 AM, John W. Krahn wrote:
> tom smith wrote:
>
>> On Mon, Nov 2, 2009 at 7:41 PM, Remy Guo wrote:
>>
>> i've got problem when trying to perform a substitution.
>>>
>>> the text file i want to process is like this:
>>> ...
>>
tom smith wrote:
On Tue, Nov 3, 2009 at 4:33 PM, tom smith wrote:
Thanks for the tips! More comments below.
I saw it written the other way somewhere, and I thought it looked cleaner.
I'll do it your way from now on.
if ($line =~ /\((.*?)\)/) {
$line =~ s/$1/$i;$j/;
If you hav
tom smith wrote:
On Mon, Nov 2, 2009 at 7:41 PM, Remy Guo wrote:
i've got problem when trying to perform a substitution.
the text file i want to process is like this:
...
XX {
ABDADADGA
afj*DHFHH
} (a123)
XXDFAAF {
af2hwefh
fauufui
} (b332)
...
i want to match the content in the paren
On Mon, Nov 2, 2009 at 7:41 PM, Remy Guo wrote:
> hi folks,
> i've got problem when trying to perform a substitution.
>
> the text file i want to process is like this:
> ...
> XX {
> ABDADADGA
> afj*DHFHH
> } (a123)
> XXDFAAF {
> af2hwefh
> fauufui
> } (b332)
> ...
>
> i want to match the
Remy Guo wrote:
hi folks,
Hello,
i've got problem when trying to perform a substitution.
the text file i want to process is like this:
...
XX {
ABDADADGA
afj*DHFHH
} (a123)
XXDFAAF {
af2hwefh
fauufui
} (b332)
...
i want to match the content in the parenthesis (a123 and b332, here) an
oops...sorry, the subitution line should be $_ =~ s/\(.*\)/$i;$j/
but it doesn't work...
2009/11/3 Remy Guo
> hi folks,
> i've got problem when trying to perform a substitution.
>
> the text file i want to process is like this:
> ...
> XX {
> ABDADADGA
> afj*DHFHH
> } (a123)
> XXDFAAF {
>
hi folks,
i've got problem when trying to perform a substitution.
the text file i want to process is like this:
...
XX {
ABDADADGA
afj*DHFHH
} (a123)
XXDFAAF {
af2hwefh
fauufui
} (b332)
...
i want to match the content in the parenthesis (a123 and b332, here) and
replace them with a sorted