Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个想要了解某些环境变量的 perl 文件。所以我可以补充:
$ENV{PLACK_ENV} = 'development'
在代码中,没关系。
但是有没有办法在不接触代码的情况下做到这一点?
ps:我正在使用linux
您可以轻松做到这一点
$ export PLACK_ENV=development $ perl your_script.pl
或者
$ PLACK_ENV=development perl your_script.pl