Subject: | Missing undef($targ) in the commandline options section |
Date: | Fri, 30 Nov 2018 10:33:53 +0000 |
To: | bug-Scriptalicious [...] rt.cpan.org |
From: | Christopher Causer <christopher.causer [...] it.ox.ac.uk> |
Hi,
When I have POD that continues past the COMMAND LINE OPTIONS, say
with details of the functions in the script, it is appended to the
--help usage
Can this please be fixed in a future release? I've included a testcase script
with the behaviour. The following patch fixes it.
--- /Scriptalicious.pm 2018-11-30 10:24:49.441223962 +0000
+++ /Scriptalicious.pm.new 2018-11-30 10:25:03.989351656 +0000
@@ -339,6 +339,7 @@
elsif ( m{^=back} ) {
if ( --$level == 0 ) {
undef($in_options);
+ undef($targ);
}
}
}
Hope I've given enough information. Please let me know if not.
C