$ cat bashout.pl #!/usr/bin/env perl use strict; use warnings; print "This is perl\n"; system ('bash'); print "This is perl, again\n"; $ ./bashout.pl This is perl $ echo $SHELL /bin/bash $ exit exit This is perl, again $