'dark sorcery' Tag

  • How to “include” shell source in Perl script

    June 27, 2017

    Often times you’d want to share a set of environment variables between shell scripts and Perl scripts. Suppose that our variables are defined in a script called “etc/env”: FOO=BARoo GURGLE="throbbozongo" In shell, we can easily include our “env” script with “source” command: #!/bin/sh . etc/env # Or equivalent but more readable: source etc/env Right, but […]

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org