http://qs1969.pair.com?node_id=11130509


in reply to .env loading the dot env file?

Hello szabgab,

just once we play vice versa: I write and you read ;)

I dont know this being a standard, nor I know if it is wise.. but why dont use directly perl instead?

Adapting my Modules as configuration files you can have ( in modconfenv.pm ):

use strict; use warnings; $ENV{XX} = 42; $ENV{YY} = 'whatever you wont'; unshift @ARGV,$_ for reverse map {s/\s*#.*$|^\s*#.*$//; (split ' ',$_,2)} split /\n/, <<'EOCONF' --put here your --list of arguments and #any #indented --comment #comments --too EOCONF ; print "@ARGV" unless caller; 1;

and then just perl -Mmodconfenv -e "print qq($ENV{XX} $ENV{YY})"

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.