开发者

Mysterious line in perl

开发者 https://www.devze.com 2022-12-09 17:18 出处:网络
I am reviewing some perl code and ran across this line $> = $<; It\'s older code and I wish I could have been more descriptive in the title above (sorry folks). What does this 开发者_如何学Go

I am reviewing some perl code and ran across this line

$> = $<;

It's older code and I wish I could have been more descriptive in the title above (sorry folks). What does this 开发者_如何学Goline do?


It sets the effective user id to the real user id.


Spig is correct. There are a whole whack of other global variables whose name is only a symbol. You might find it useful to check perldoc perlvar for a list of them and what they mean.

0

精彩评论

暂无评论...
验证码 换一张
取 消