Perldoc Search: "$<" perl-5.20.1

search official POD


8 PODs, 20 LINEs found.
perlreguts.pod
276 :      >(foo|bar)$<               tail~ EXACT <x> (1)
279 :      >foo|bar)$<                    reg
283 :      >|bar)$<         31              tail~ OPEN1 (26)
284 :      >bar)$<                          brnc
287 :      >)$<             34              tail~ BRANCH (28)
294 :      >$<                        tail~ BRANCH (3)
perlvar.pod
136 :             $<, $>, $( and $) can be set only on machines that support the corresponding *set[re][ug]id()* routine. $( and $) can be swapped only on machines supporting "setregid()".
142 :     $<      The real uid of this process. You can change both the real uid and the effective uid at the same time by using "POSIX::setuid()". Since changes to $< require a system call, check $! after a change attempt to detect any possible errors.
150 :                 $< = $>;            # set real to effective uid
151 :                 ($<,$>) = ($>,$<);  # swap real and effective uids
155 :             $< and $> can be swapped only on machines supporting "setreuid()".
433 :     $<*digits*> ($1, $2, ...)
perlop.pod
504 :               // (getpwuid($<))[7]
1278 :             Note the use of $ instead of \ in the last example. Unlike sed, we use the \<*digit*> form in only the left hand side. Anywhere else it's $<*digit*>.
perlfunc.pod
514 :             $pwd = (getpwuid($<))[1];
1207 :             $login = getlogin || getpwuid($<) || "Kilroy";
perlport.pod
345 :     Don't assume the Unix user and group semantics: especially, don't expect the $< and $> (or the $( and $)) to work for switching identities (or memberships).
perldiag.pod
2576 :         (F) You tried to assign to $<, and your operating system doesn't support the setruid() system call (or equivalent), or at least Configure didn't think so.
perlcall.pod
174 :             print "UID is $<\n";
perltrap.pod
36 :     *   $<*digit*> does not refer to fields--it refers to substrings matched by the last match pattern.
<< Back to Perldoc Search