PERLBUG(1perl)

πŸ“¦
version 5.44.0 Β· 2 versions
, in arch rolling

🌸 PERLBUG πŸ’…

okay bestie, you're holding the manual page for perlbug from the Perl Programmers Reference Guide. Yes that's the whole title. It's giving official. Let's get into it ✨


✨ NAME ✨

perlbug β€” how to submit bug reports on Perl πŸ›


πŸŽ€ SYNOPSIS πŸŽ€


perlbug [ -v ] [ -a address ] [ -s subject ] [ -b body | -f inputfile ]
[ -F outputfile ] [ -r returnaddress ] [ -e editor ]
[ -c adminaddress | -C ] [ -S ] [ -t ]  [ -d ]  [ -h ] [ -T ]

perlbug [ -v ] [ -r returnaddress ]
 [ -ok | -okay | -nok | -nokay ]

perlthanks

πŸ¦‹ DESCRIPTION πŸ¦‹

So this program is literally here to help you generate bug reports (and also thank-you notes!! πŸ’–) about perl5 and the modules that ship with it. Cute, right?

In most cases you can just run it interactively from a command line with zero special arguments and follow the prompts. That's the vibe. Just vibe with the prompts.

If you found a bug in a non-standard port (one that was not part of the standard distribution), a binary distribution, or a non-core module (like Tk, DBI, etc), then bestie please go read the documentation that came with that distribution to figure out the correct place to report bugs. Not our house, not our problem, we're just the messenger 🫢

Bug reports should be submitted to the GitHub issue tracker at <https://github.com/Perl/perl5/issues>. The perlbug@perl.org address no longer automatically opens tickets (rip the old ways 😭). You can use this tool to compose your report and save it to a file, which you can then submit to the issue tracker.

In extreme cases, perlbug may not work well enough on your system to guide you through composing a bug report. In those cases, you may be able to use perlbug -d or perl -V to get system configuration information to include in your issue report. Iconic workaround behavior honestly.

When reporting a bug, please run through this checklist:

πŸ’… What version of Perl you are running?

Type perl -v at the command line to find out. slay πŸ’«

πŸ’… Are you running the latest released version of perl?

Look at <http://www.perl.org/> to find out. If you are not using the latest released version, please try to replicate your bug on the latest stable release. fr fr, this matters.

Note that reports about bugs in old versions of Perl β€” especially those which indicate you haven't also tested the current stable release of Perl β€” are likely to receive less attention from the volunteers who build and maintain Perl than reports about bugs in the current release. No cap, that's just how it goes 😬

πŸ’… Are you sure what you have is a bug?

A significant number of the bug reports we get turn out to be documented features in Perl. πŸ’€ Make sure the issue you've run into isn't intentional by glancing through the documentation that comes with the Perl distribution.

Given the sheer volume of Perl documentation, this isn't a trivial undertaking, but if you can point to documentation that suggests the behaviour you're seeing is wrong, your issue is likely to receive more attention. You may want to start with perldoc perltrap for pointers to common traps that new (and experienced) Perl programmers run into.

If you're unsure of the meaning of an error message you've run across, perldoc perldiag for an explanation. If the message isn't in perldiag, it probably isn't generated by Perl. You may have luck consulting your operating system documentation instead.

If you are on a non-UNIX platform, perldoc perlport, as some features may be unimplemented or work differently.

You may be able to figure out what's going wrong using the Perl debugger. For info about how to use the debugger, perldoc perldebug. πŸ’–

πŸ’… Do you have a proper test case?

The easier it is to reproduce your bug, the more likely it will be fixed β€” if nobody can duplicate your problem, it probably won't be addressed. periodt.

A good test case has most of these attributes: short, simple code; few dependencies on external commands, modules, or libraries; no platform-dependent code (unless it's a platform-specific bug); clear, simple documentation.

A good test case is almost always a good candidate to be included in Perl's test suite. If you have the time, consider writing your test case so that it can be easily included into the standard test suite. You'd be iconic for that πŸ’…βœ¨

πŸ’… Have you included all relevant information?

Be sure to include the exact error messages, if any. "Perl gave an error" is not an exact error message. bestie. please. 😭

If you get a core dump (or equivalent), you may use a debugger (dbx, gdb, etc) to produce a stack trace to include in the bug report.

NOTE: unless your Perl has been compiled with debug info (often -g), the stack trace is likely to be somewhat hard to use because it will most probably contain only the function names and not their arguments. If possible, recompile your Perl with debug info and reproduce the crash and the stack trace. This is highkey important.

πŸ’… Can you describe the bug in plain English?

The easier it is to understand a reproducible bug, the more likely it will be fixed. Any insight you can provide into the problem will help a great deal. In other words, try to analyze the problem (to the extent you can) and report your discoveries. explain it like I'm five energy 🍼

πŸ’… Can you fix the bug yourself?

If so, that's great news; bug reports with patches are likely to receive significantly more attention and interest than those without patches. Please submit your patch via the GitHub Pull Request workflow as described in perldoc perlhack. You may also send patches to perl5-porters@perl.org. When sending a patch, create it using git format-patch if possible, though a unified diff created with diff -pu will do nearly as well.

Your patch may be returned with requests for changes, or requests for more detailed explanations about your fix. don't take it personally, it's just peer review 🫢

Here are a few hints for creating high-quality patches:

  • Make sure the patch is not reversed (the first argument to diff is typically the original file, the second argument your changed file).
  • Make sure you test your patch by applying it with git am or the patch program before you send it on its way.
  • Try to follow the same style as the code you are trying to patch.
  • Make sure your patch really does work (make test, if the thing you're patching is covered by Perl's test suite).

πŸ’… Can you use perlbug to submit a thank-you note?

Yes, you can do this by either using the -T option, or by invoking the program as perlthanks. Thank-you notes are good. It makes people smile. πŸ₯ΉπŸ’–


Please make your issue title informative. "a bug" is not informative. Neither is "perl crashes" nor is "HELP!!!". These don't help. A compact description of what's wrong is fine. THANK YOU πŸ™

Having done your bit, please be prepared to wait, to be told the bug is in your code, or possibly to get no reply at all. The volunteers who maintain Perl are busy folks, so if your problem is an obvious bug in your own code, is difficult to understand or is a duplicate of an existing report, you may not receive a personal reply. it's not personal, they're just booked and busy πŸ’…

If it is important to you that your bug be fixed, do monitor the issue tracker (you will be subscribed to notifications for issues you submit or comment on) and the commit logs to development versions of Perl, and encourage the maintainers with kind words or offers of frosty beverages. πŸ§‹

(Please do be kind to the maintainers. Harassing or flaming them is likely to have the opposite effect of the one you want.) 🚨 be nice bestie, it's free

Feel free to update the ticket about your bug on <https://github.com/Perl/perl5/issues> if a new version of Perl is released and your bug is still present.


✨ OPTIONS ✨

  • -a β€” Address to send the report to instead of saving to a file. βœ‰οΈ
  • -b β€” Body of the report. If it's not included on the command line, or in a file with -f, you will get a chance to edit the report.
  • -C β€” Don't send copy to administrator when sending report by mail. bye admin πŸ™ˆ
  • -c β€” Address to send copy of report to when sending report by mail. Defaults to the address of the local perl administrator (recorded when perl was built).
  • -d β€” Data mode (the default if you redirect or pipe output). This prints out your configuration data, without saving or mailing anything. You can use this with -v to get more complete data. πŸ—‚οΈ
  • -e β€” Editor to use. pick your weapon πŸ’»
  • -f β€” File containing the body of the report. Use this to quickly send a prepared report. prep queen behavior πŸ‘‘
  • -F β€” File to output the results to. Defaults to perlbug.rep.
  • -h β€” Prints a brief summary of the options. help me help you πŸ’–
  • -ok β€” Report successful build on this system to perl porters. Forces -S and -C. Forces and supplies values for -s and -b. Only prompts for a return address if it cannot guess it (for use with make). Honors return address specified with -r. You can use this with -v to get more complete data. Only makes a report if this system is less than 60 days old. ⏳
  • -okay β€” As -ok except it will report on older systems. (no 60-day limit, grandma systems welcome 🫢)
  • -nok β€” Report unsuccessful build on this system. Forces -C. Forces and supplies a value for -s, then requires you to edit the report and say what went wrong. Alternatively, a prepared report may be supplied using -f. Only prompts for a return address if it cannot guess it (for use with make). Honors return address specified with -r. You can use this with -v to get more complete data. Only makes a report if this system is less than 60 days old. πŸ’€
  • -nokay β€” As -nok except it will report on older systems.
  • -p β€” The names of one or more patch files or other text attachments to be included with the report. Multiple files must be separated with commas. πŸ“Ž
  • -r β€” Your return address. The program will ask you to confirm its default if you don't use this option.
  • -S β€” Save or send the report without asking for confirmation. confident queen ✨
  • -s β€” Subject to include with the report. You will be prompted if you don't supply one on the command line.
  • -t β€” Test mode. Makes it possible to command perlbug from a pipe or file, for testing purposes. πŸ§ͺ
  • -T β€” Send a thank-you note instead of a bug report. πŸ’Œ
  • -v β€” Include verbose configuration data in the report.

πŸŽ€ AUTHORS πŸŽ€

Kenneth Albanowski (<kjahds@kjahds.com>), subsequently doctored by Gurusamy Sarathy (<gsar@activestate.com>), Tom Christiansen (<tchrist@perl.com>), Nathan Torkington (<gnat@frii.com>), Charles F. Randall (<cfr@pobox.com>), Mike Guy (<mjtg@cam.ac.uk>), Dominic Dunlop (<domo@computer.org>), Hugo van der Sanden (<hv@crypt.org>), Jarkko Hietaniemi (<jhi@iki.fi>), Chris Nandor (<pudge@pobox.com>), Jon Orwant (<orwant@media.mit.edu>, Richard Foley (<richard.foley@rfi.net>), Jesse Vincent (<jesse@bestpractical.com>), and Craig A. Berry (<craigberry@mac.com>).

the whole squad. we love a collaborative effort πŸŒˆπŸ‘‘


🌸 SEE ALSO 🌸

perl(1), perldebug(1), perldiag(1), perlport(1), perltrap(1), diff(1), patch(1), dbx(1), gdb(1)

πŸ› BUGS πŸ›

okay so. bestie. listen. πŸ’–

None known 🫢 β€” which is iconic, honestly, and also kinda funny when you think about it, because... guess what must have been used to report them? πŸ‘€πŸ’€

like. the bug reporter. to report the bugs. about itself. no cap. perlbug is out here living its main character era and we love that for it ✨


that's the whole page, bestie πŸŽ€ this one's from perl v5.44.0, dated 2026-10-17 β€” go forth and report responsibly, the tool literally has one job and it's slaying it πŸ’…πŸŒˆβ­

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms