in reply to Syntax using user define $>
What are you trying to accomplish?
The expression $> && ($> == 0) should always be false and Deparse suggests that $> && $> eq 0 parses as that. Testing $> itself should be false iff you are running with EUID 0. Remember that UID values are numbers so you should compare them with the numeric comparisons rather than string comparisons in Perl; see perlop for more details.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Syntax using user define $>
by bigal_george (Acolyte) on Jan 01, 2020 at 01:24 UTC | |
by jcb (Parson) on Jan 01, 2020 at 02:47 UTC |
In Section
Seekers of Perl Wisdom