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
Àðòåì Àâåòèñÿí 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
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
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.
$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
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
Артем Аветисян 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.
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