Forced interpolation

2005-12-06 Thread Артем Аветисян
Hi, all. use strict; my $str = 'lazha'; my $pattern = 'la(zh)(a)'; my $replacement = '$1op$2'; $str =~ s/$pattern/$replacement/; print $str; __END__ I want zhopa to be printed. So far it is obviously '$1op$2'. eval (as well as s///ee) doesn't seem to be helpful. More generally, I want to

RE: Forced interpolation

2005-12-06 Thread Charles K. Clarkson
Àðòåì Àâåòèñÿí wrote: : use strict; : my $str = 'lazha'; : my $pattern = 'la(zh)(a)'; : my $replacement = '$1op$2'; : $str =~ s/$pattern/$replacement/; : print $str; : __END__ : : I want : : zhopa my $replacement = $1o\p$2; # or: my $replacement = qq($1op$2); # You can read more about

Re: Forced interpolation

2005-12-06 Thread Chris Wagner
At 06:47 PM 12/6/2005 +0300, my $str = 'lazha'; my $pattern = 'la(zh)(a)'; my $replacement = '$1op$2'; $str =~ s/$pattern/$replacement/; print $str; I want zhopa to be printed. So far it is obviously '$1op$2'. eval (as well I think ur going about this the wrong way. I'm guessing that u want to

Re: Forced interpolation

2005-12-06 Thread Craig Cardimon
I wanted to make a joke about the subject, but every time I try such a thing, it never comes out right. Sigh. -- Craig --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0549-2, 12/06/2005 Tested on: 12/6/2005 12:54:08 PM avast! - copyright (c) 1988-2004 ALWIL Software.

Re[2]: Forced interpolation

2005-12-06 Thread Артем Аветисян
$replacement = '$1op$2'; eval \$str =~ s/$pattern/$replacement/;; print$str; __END__ zhopa - Original Message - From: Артем Аветисян [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Tuesday, December 06, 2005 4:47 PM Subject: Forced interpolation Hi, all. use

Re[2]: Forced interpolation

2005-12-06 Thread Артем Аветисян
English is not my native, so i'd be pleased if you explain me the point :) I wanted to make a joke about the subject, but every time I try such a thing, it never comes out right. Sigh. -- Craig --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0549-2, 12/06/2005

Re: Forced interpolation

2005-12-06 Thread $Bill Luebkert
Артем Аветисян wrote: English is not my native, so i'd be pleased if you explain me the point :) He probably had in mind something of a sexual nature. :) I wanted to make a joke about the subject, but every time I try such a thing, it never comes out right. Sigh.

Re: Forced interpolation

2005-12-06 Thread Chris Wagner
At 01:10 PM 12/6/2005 -0800, $Bill Luebkert wrote: Артем Аветисян wrote: English is not my native, so i'd be pleased if you explain me the point :) He probably had in mind something of a sexual nature. :) I wanted to make a joke about the subject, but every time I try such a