in reply to Re: perl scripting help
in thread perl scripting help

Hmm, if OP wants to have an interactive terminal that just executes some commands before dropping to the command line, something like this should work:

system('xterm', '-e', 'bash -rcfile /home/username/script.sh');

perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'