Been mingling through some basic perl, now having some .net programming experience I can relate to using Packages and Modules however now, Im stuck. Cant seem to understand the how to USE them, since I have to do everything manualy in perl..
Also the next left me wondering :
"The package stays in effect until either another package statement is invoked, or until the end of the end of the current block or file."
What?...HUH? package invoked? Dont you just stick in on the top of your file like:
use HTTP::Response;
codecodecodecodecode
And there you have it! All the functions in the Response package are at your disposal.
So, it seems I was wrong and whenever another module is included in your file than the previous dies? Cant be.
I might have mashed alot in here, still learning.
I'm doing my reading but i've come to some stopsigns past which to travel, I need your throughoutly explained knowledge.
10x,
Alex
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.