What's the Perl analogue of `python -i script.py`? -



What's the Perl analogue of `python -i script.py`? -

the command python -i script.py run given script drop me interactive repl functions , variables script accessible. there perl analogue?

edit: if helps, here's description of python -i https://docs.python.org/3.4/using/cmdline.html#cmdoption-i

when script passed first argument or -c alternative used, come in interactive mode after executing script or command, when sys.stdin not appear terminal. pythonstartup file not read.

this can useful inspect global variables or stack trace when script raises exception

perl -d script.pl , hitting c<enter> close enough,

c [ln|sub] go on until position perl -mdata::dumper -de '%h = 1..4' loading db routines perl5db.pl version 1.44 editor back upwards available. come in h or 'h h' help, or 'man perldebug' more help. main::(-e:1): %h = 1..4 db<1> print dumper \%h $var1 = {}; db<2> c debugged programme terminated. utilize q quit or r restart, utilize o inhibit_exit avoid stopping after programme termination, h q, h r or h o additional info. db<2> print dumper \%h $var1 = { '3' => 4, '1' => 2 };

perl

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -