perl_warnings_in_page — display Perl "warnings" for Interchange pages
If it is desirable to turn on Perl warnings for pages, you can use
[pragma perl_warnings_in_page]
and see warnings for that page
(or all pages by default if you put in catalog.cfg
).
Example: Enable perl_warnings_in_page catalog-wide
Put the following in catalog.cfg
:
Pragma perl_warnings_in_page
Interchange 5.9.0 (1/1 contexts shown):
Source: lib/Vend/Interpolate.pm
Line 663 (context shows lines 653-667 in interpolate_html():640)
and $html =~ s/^/$::Variable->{MV_AUTOLOAD}/; defined $::Variable->{MV_AUTOEND} and $html =~ s/$/$::Variable->{MV_AUTOEND}/; $toplevel = 1; } #::logDebug("opt=" . uneval($opt)); vars_and_comments(\$html) unless $opt and $opt->{onfly}; $^W = 1 if $::Pragma->{perl_warnings_in_page}; # Returns, could be recursive my $parse = new Vend::Parse $wantref; $parse->parse($html);