Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: perl scripting help

by cavac (Parson)
on May 28, 2021 at 16:04 UTC ( [id://11133228]=note: print w/replies, xml ) Need Help??


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";'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133228]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-26 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found