laziness, impatience, and hubris | |
PerlMonks |
Re: Syntax using user define $>by jcb (Parson) |
on Jan 01, 2020 at 00:24 UTC ( [id://11110809]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|