一个例子将不胜感激。以下是我阅读它的示例:
$self->parameter(
name => 'real_user',
xpath => undef,
default => scalar(getpwuid($<))
);
$self->parameter(
name => 'production',
xpath => '/config/production',
default => $self->get('user_uid') == $>
);
最佳答案
一个 $
后跟符号?致 perlvar !
$<
The real uid of this process.
$>
The effective uid of this process.
使用它们找出运行程序的用户。
关于perl - "$<"& "$>"在 Perl 中是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17102158/