[Templates] segmentation fault
Mark Mills
mark@xodiax.com
Sat, 25 Oct 2003 15:20:00 -0400
David Dyer-Bennet wrote:
> if ($aif->{fpath} =~ /\/encyclopedia\/(.*)\/index\.html$/ ) {
> print "foo $1";
> Produces a segmentation fault.
>
> See that print "foo $1" just after the regexp match in the if
> statement? If you take the $1 out of the string, the segmentation
> fault goes away!!!! So apparently I'm allowed to do the regexp match,
> but not to know what the parenthesized bit actually matched. Bummer!
What happens if you do:
my $foo = "foo $1";
print $foo;
Does that seg-fault too?
--mark