use strict; use warnings; print_bon(); print "Action 1\n"; print "Action 2\n"; print "Action 3\n"; sub print_bon { sleep 3; print "Ausdruck\n"; }