我是 Perl 的初学者。
我的理解如下。
看起来很好。然而,在我使用 Golang、Nginx 等进行现代开发的经验中,我从未见过 FCGI。
现代 Web 应用程序不再需要 FCGI 了吗?
FCGI的缺点是什么,FCGI的优点是什么?
print$f+=$z=$f-$z,$/for--$z..8
Run Code Online (Sandbox Code Playgroud)
或者,如果将 $z 替换为 $!,则可以执行以下操作。
print$f+=$!=$f-$!for--$!..8
Run Code Online (Sandbox Code Playgroud)
但为什么?$!是错误 perlval,不是吗?
下面的代码只能更改属性并保留颜色。
init_color(1, 255);
init_color(2, 1);
init_pair(1, 1, 2);
attron(COLOR_PAIR(1)); // only change the pair of foreground and background color
addstr("aaa");
attron(A_BOLD); // only change the attribute
addstr("aaa");
attrset(COLOR_PAIR(1)|A_BOLD); // change both
Run Code Online (Sandbox Code Playgroud)
我想知道我们是否可以只改变前景色,但保留背景色。
attron_fg(BACKGROUND_YELLOW); // only change the foreground color
addstr("aaa");
Run Code Online (Sandbox Code Playgroud)