?? eval.example
字號:
In the Perl script "test.pl": ... my $WEBROOT = <WEBROOT_PATH>; ...To force variable substitution try: $export WEBROOT_PATH=/usr/local/webroot $sed 's/<WEBROOT_PATH>/$WEBROOT_PATH/' < test.pl > outBut this just gives: my $WEBROOT = $WEBROOT_PATH;However: $export WEBROOT_PATH=/usr/local/webroot $eval sed 's%\<WEBROOT_PATH\>%$WEBROOT_PATH%' < test.pl > out# ====That works fine, and gives the expected substitution: my $WEBROOT = /usr/local/webroot;### Correction applied to original example by Paulo Marcel Coelho Aragao.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -