Re: A problem on regex.

2011-01-24 Thread Moritz Lenz
Am 24.01.2011 09:14, schrieb chris: The $0 var is set on a mach operation but not in a substitute. So that its value is "Undef" it's undefined, but there isn't one canonical Undef anymore. Where is the problem ? in src/Perl6/Actions.pm, method quote:sym, lines 2888-2923 Cheers, Moritz

A problem on regex.

2011-01-24 Thread chris
Hello everybody. Lets explain my problem. Lets see the folowing perl 5 program : #!/usr/bin/perl my $c = "AABBCC"; my $m = "B"; $c =~ s/($m+)/XX/; print "Chain : $1.\n"; print "Final chain : $c.\n"; Le résultat est bien celui que j'attendais : Chain : BB. Final chain : AAXXCC. Lets see now Per