#!/usr/bin/env perl use strict; use warnings; print "With system ():\n"; system "./inttrap.sh"; print "With exec ():\n"; exec "./inttrap.sh";