An example will be highly appreciated. Below is a sample of where I read it:
$self->parameter(
name => 'real_user',
xpath => undef,
default => scalar(getpwuid($<))
);
$self->parameter(
name => 'production',
xpath => '/config/production',
default => $self->get('user_uid') == $>
);
A $
followed by symbol? To perlvar!
$<
The real uid of this process.
$>
The effective uid of this process.
Use them to find out what user is running the program.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With