regex bug? m/h/i =~ "Hello"

Michael Peternell michael.peternell at gmx.at
Sat Apr 11 18:35:53 UTC 2009


This is Rakudo Perl 6, revision 37980 built on parrot 1.0.0-devel
for i486-linux-gnu-thread-multi.

 > m/h/i =~ "Hello"
get_number() not implemented in class 'Sub'
Speicherzugriffsfehler

"Speicherzugriffsfehler" is German and means "memory-access-error" or 
SEGFAULT. Perl6 terminates afterwards. Exit code ($?) is 139. (I'm 
working on Debian/Lenny/stable. Kernel version: 2.6.26-1-686 #1 SMP Fri 
Mar 13 18:08:45 UTC 2009 i686 GNU/Linux)

same problem with:
m/h/i ~= "Hello"
m/h/i =~ "blub"
so it doesn't matter if the regex would match or not.

without /i it works (as expected?):
 > say m/h/ =~ "Hello"
Hello
 > say m/h/ =~ "hello"
hello

Michael



More information about the parrot-dev mailing list