Perl Haquer Reference/Tutorial by samy kamkar [CommPort5@LucidX.com]

First off, I'd like to say h4w h4w h4w. This page is made (and updated) to tell people about l33t haquerish ways to do dope stuff in perl.
This isn't something to help you learn perl, it's for people who already know at least a bit of it and even really good coders because I try to cover a lot of stuff people usually don't use or do. Cool thing about this page is that I'll be including a lot of examples and the such because that seems to help lazy coders, and I have to admit that there are a lot of lazy perl coders out there.

Is this a copy of perlfaq?
No way. perlfaq (practical extraction and report language frequently asked questions) is a completely different document. This page and a few of the names of the different sections in this page are the same as perlfaq's because perlfaq has a good order and topics for the links. The information in this document is also shaped differently and this is not a FAQ, nor is it for people who are looking for something which is stated in perlfaq. This is just cool stuff I know that I thought would be interesting to share.


Get documentation on a module (such as 'Socket' or 'File::Find'), pod in the perl 5.6.0 distribution (such as 'perldata' or 'perlform'), a perlfaq (such as 'perlfaq' or 'perlfaq3'), a perlhaq (such as 'perlhaq1' or 'perlhaq3'), or a function (such as 'print' or 'seek'):

  

perlhaq: Structural overview of perlhaq.
This document.

perlhaq1: Data Manipulation
Information on data types and dope manipulation of them.

perlhaq2: Files and Formats
Cool stuff on files, formats, conversions, and common exploitable bugs in file manipulation code.

perlhaq3: Regexps
Sweet regular expressions, more efficient regular expressions and haquer regular expressions.

perlhaq4: Efficiency
Ways to make code more efficient in different perspectives.

perlhaq5: Obfuscation
Obfuscating code and explanations on different methods.

perlhaq6: Shortening Code
Shortening code in different ways. Most of this document goes well with perlhaq5.

perlhaq7: System Interaction
Interprocess communication (IPC), control over the user-interface, etc..

perlhaq8: Networking
Networking, the Internet, and low-level packet capture and injection.

perlhaq9: Exploitation through perl
Writing buffer overflow, format string, CGI hole, etc. exploits.


Changes

August 29, 2001 - I began writing this.


Author

That would be me, samy kamkar. You can reach me at CommPort5@LucidX.com or on IRC on SUIDnet in #suid with the IRC name 'CommPort5'.