Subject: | Add filter for the “empty” bracket notation that L::M allows |
compiles fine but is really unexpected:
perl -Ilib -MLocale::Maketext::Utils::Mock -le 'my $h=Locale::Maketext::Utils::Mock-
Show quoted text
>get_handle();print $h;my $r=$h->_compile(qq{X [$ARGV[0]] Y});print $r;if (ref($r) eq "SCALAR")
{ print $$r } else { print $r->($h,1,2,3) } print $INC{"Locale/Maketext.pm"};' ""
… " "
(will work if it were an interpolated \t\n\r\f also …)
… ","
… ",abc,def",
… " ,space as method" && " mnon-break-space as method die w/: “Can't use " " as a method …”