Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: .env loading the dot env file?by LanX (Saint) |
on Mar 28, 2021 at 21:10 UTC ( [id://11130532]=note: print w/replies, xml ) | Need Help?? |
Yes I like this inside-out approach too, since it's trivial to share data between different languages. :) BUT I should add that source has the same limitation like a do config.pl ... it's evaling code which might pose a bigger security problem than only "parsing" the file. OTOH that's also the case if the shell does it, before executing Perl. It wasn't clear to me what kind of .env the OP wants. And %ENV is always security relevant.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|