Monday, November 10, 2008

[perl] Few tips

*To Jump to a variable/function declaration, type:
gd
Found at http://www.moolenaar.net/habits.html

*To check if a user has an account on a host, you can use getpwnam
Found at http://www.perl.com/doc/manual/html/pod/perlfunc/getpwnam.html
See also getgrnam and other variants get*


*Some perl variables:
$<, $>
Description of those special perl variables at http://affy.blogspot.com/p5be/ch12.htm
Those threads may help you understand
http://www.linuxforums.org/forum/redhat-fedora-linux-help/106602-difference-between-uid-effective-uid.html
http://stackoverflow.com/questions/205070/whats-the-deal-with-all-the-different-uids-a-process-can-have