commandline session
$perl test1.pl 1..1 ok 1 $cat test1.pl #!/usr/bin/perl -w print "1..1n"; print 1 + 1 == 2 ? "ok 1n" : "not ok 1n"; $perl 1+1 $perl -e No code specified for -e. $perl -d Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. DB quit DB exit $perl -d -e 1 Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): 1 DB 1+1 DB print 1+1 2 DB print 1 + 1 == 2 1 DB print 1 + 1 == 3 DB print 2 + 2 == 3 DB print 2 + 2 == 4 1 DB