Don't mind the downvotes
Stef, it's a perfectly reasonable question for a new Perl user.
I see that the question has been suitably answered, but I thought I'd elaborate a little more on *how* it was answered. There is a command-line tool called "perldoc" which is invaluable to Perl coders. It is roughly equivalent to "man" in the unix world. If you want to know how to use a module (probably downloaded from
CPAN), you can type
perldoc Module::Name, replacing "Module::Name" with the actual name of the module.
Perldoc also has a feature that describes built-in functions in Perl, such as
printf and
sprintf. You can access this by typing
perldoc -f function_name, again replacing "function_name" with the actual function. With this tool, you wouldn't have had to wait for a reply from perlmonks. :)
For more information on "perldoc", simply type
perldoc perldoc. Enjoy!
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.