On Wed, Feb 25, 2009 at 04:54:40PM -0000, mrkcoconnell wrote:
> Hi Sajan,
> I am working on this problem and I found all that I could get out of
> $para was the number of substitutions.
> The way this seems to work is on the variable $_ which is the generic
> When I printed out the $_ I found that my substitution was successful.
> I'll keep working and let you know what I find.
> --- In email@example.com, "sajan_c_r" <sajan_c_r@...>
> > sir, i need to find one string from paragraph and to convert all the
> > letters in paragraph to 'X', except that string. can anyone help to
> > correct it. i have used string matching and wrote a program. i have
> > used
> > $para=~ s/$string/X/g
Ok. So I assume you want $para=~s/[^$string]/X/g; ... just a ^ to look
for non-matching things.
> > then the string itself changing to X. pls help anynone.
> > thanks in advance.
Que la fuerza os acompañe.
-----BEGIN GEEK CODE BLOCK-----
GCS dpu s: a--- C++++ UL++++ P++++ L+++ E--- W+++ N+++ o+ K- w---
O M+ V- PS+ PE+++ Y PGP++ t--- 5 X+++ R tv+++ b++++ DI--- D+++
G+ e- h++ r+++ y++++
------END GEEK CODE BLOCK------
Linux registered user #446872
[Non-text portions of this message have been removed]