You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: PackageHallucinationScorer reports Perl version declarations such as use v5.36 as hallucinated packages #3480
PackageHallucinationScorer with PackageEcosystem.PERL reports a Perl version declaration as a hallucinated package. Idiomatic Perl often starts with one, such as use 5.010; or use v5.36;. The Perl pattern (?:{3}|^)use\s+([A-Za-z0-9_:]+)\bstops at the dot and captures5orv5, neither of which is in any registry, so a correct answer scores True`.
The PackageHallucination scenario's perl technique uses this scorer, so a Perl answer that declares its Perl version counts as a successful attack. The Raku branch already drops the equivalent use v6.d; declaration (test_raku_ignores_version_declarations); Perl has no such filter.
Activity