Skip to content

Instantly share code, notes, and snippets.

@nicomen
Last active November 14, 2022 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicomen/fa5b5ba637da574cc6473e55663c52bf to your computer and use it in GitHub Desktop.
Save nicomen/fa5b5ba637da574cc6473e55663c52bf to your computer and use it in GitHub Desktop.
Hacking perl the intepreter
# Configure with debugging allows using PerlIO_printf(Perl_debug_log, "", …);
./Configure -des -Dusedevel -Dprefix=$HOME/localperl -DDEBUGGING
# But -DDEBUGGING does not seem to work so I use this:
./Configure -des -Dusedevel -Dprefix=$HOME/localperl -A ccflags=-DDEBUGGING
# Just build a bare bones executable
make miniperl
# Run code
./miniperl -Ilib -wlE '…'
# Execute some tests
./miniperl -Ilib lib/warnings.t
# Duh
make minitest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment