[sf-perl] why 'eq' and not '==' in perlsec man page?
Randal L. Schwartz
merlyn at stonehenge.com
Tue Sep 4 11:55:01 PDT 2007
>>>>> "David" == David Alban <extasia at extasia.org> writes:
David> In the statement:
David> die "Can't drop privileges"
David> unless $UID == $EUID && $GID eq $EGID;
David> I was wondering why they used '==' and then 'eq'. In this particular
David> case, we can always expect the group ID's to be non-leading-zero
David> integers. Do you think the 'eq' was a typo in the man page?
"perldoc perlvar" and look at $( and $). They are strings, not just
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
More information about the SanFrancisco-pm