CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced: Module programming: Edit Log



oldwarrior_32
Novice

Mar 8, 2012, 11:00 AM


Views: 9827
Module programming

 
Hello.

I am curious about Perl Modules. I have done some scripts based in modules. The modules always make the hard part of the job. I try to read a module source code and is very painful.

For example the telnet module, I don't get how the module tells the computer "send a SYN segment to start a TCP session". How do you tell the computer that?

Could you recommend a book or webpage that describes this deep Perl programming? It has some special technical name?

Thanks.

PD: the Telnet Module begins with this,

use vars qw(@EXPORT_OK);
@EXPORT_OK = qw(TELNET_IAC TELNET_DONT TELNET_DO TELNET_WONT TELNET_WILL
TELNET_SB TELNET_GA TELNET_EL TELNET_EC TELNET_AYT TELNET_AO
TELNET_IP TELNET_BREAK TELNET_DM TELNET_NOP TELNET_SE
TELNET_EOR TELNET_ABORT TELNET_SUSP TELNET_EOF TELNET_SYNCH
TELOPT_BINARY TELOPT_ECHO TELOPT_RCP TELOPT_SGA TELOPT_NAMS
TELOPT_STATUS TELOPT_TM TELOPT_RCTE TELOPT_NAOL TELOPT_NAOP
TELOPT_NAOCRD TELOPT_NAOHTS TELOPT_NAOHTD TELOPT_NAOFFD
TELOPT_NAOVTS TELOPT_NAOVTD TELOPT_NAOLFD TELOPT_XASCII
TELOPT_LOGOUT TELOPT_BM TELOPT_DET TELOPT_SUPDUP
TELOPT_SUPDUPOUTPUT TELOPT_SNDLOC TELOPT_TTYPE TELOPT_EOR
TELOPT_TUID TELOPT_OUTMRK TELOPT_TTYLOC TELOPT_3270REGIME
TELOPT_X3PAD TELOPT_NAWS TELOPT_TSPEED TELOPT_LFLOW
TELOPT_LINEMODE TELOPT_XDISPLOC TELOPT_OLD_ENVIRON
TELOPT_AUTHENTICATION TELOPT_ENCRYPT TELOPT_NEW_ENVIRON
TELOPT_EXOPL);

What does this mean "use vars qw(@EXPORT_OK);"?

And all that name in the list? It's like are predefined to do something in the system, is not like a common list.


(This post was edited by oldwarrior_32 on Mar 8, 2012, 11:03 AM)


Edit Log:
Post edited by oldwarrior_32 (Novice) on Mar 8, 2012, 11:00 AM
Post edited by oldwarrior_32 (Novice) on Mar 8, 2012, 11:03 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives