Last active
November 14, 2022 02:15
-
-
Save nicomen/fa5b5ba637da574cc6473e55663c52bf to your computer and use it in GitHub Desktop.
Hacking perl the intepreter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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