Perl中“$<”和“$>”的含义是什么

前端之家收集整理的这篇文章主要介绍了Perl中“$<”和“$>”的含义是什么前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
一个例子将受到高度赞赏.以下是我阅读它的示例:

$self->parameter(
    name => 'real_user',xpath => undef,default => scalar(getpwuid($<))
);
$self->parameter(
    name => 'production',xpath => '/config/production',default => $self->get('user_uid') == $>
);

解决方法

A后跟符号?到 perlvar

$<
The real uid of this process.

$>
The effective uid of this process.

使用它们来找出运行该程序的用户.

猜你在找的Perl相关文章