in reply to Re: Re: How to remove the $1 hard coding
in thread How to remove the $1 hard coding
The split is not the same as the pattern. The pattern uses \s* as the delimiter, which means that ABCD should match that pattern, as well as "A B C D".
I just tested this, and it fails:
push @sps, ($string =~ m/RE/)[$columnNumber];
Could some fine monk explain why? Wouldn't the RE evaluate in a list context, which would then have an element extracted from it?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: How to remove the $1 hard coding
by graff (Chancellor) on Aug 22, 2003 at 23:56 UTC | |
by tachyon (Chancellor) on Aug 23, 2003 at 10:28 UTC | |
by MidLifeXis (Monsignor) on Aug 23, 2003 at 20:40 UTC | |
by tachyon (Chancellor) on Aug 25, 2003 at 12:25 UTC | |
Re: Re: Re: Re: How to remove the $1 hard coding
by chunlou (Curate) on Aug 22, 2003 at 19:37 UTC |