王晓哲 wrote: > When using split() function in (??{...}), the Perl interpreter died. > This error can be verified by the following program: > #!/usr/bin/perl > $a="aba"; > print "matched\n" if $a=~/(??{"aba"})/; # OK > print "matched\n" if $a=~/(??{join("",split("","aba"))})/; # Segmentation Fault The regexp engine not being reentrant, this is not expected to work. However, the segfault seems to occur only with threaded perls.Thread Previous | Thread Next