Perhaps the OP is using a ANSI/Curses library or set of routines written by someone else. It might (doubtful) even be CGI related. I can't grok these functions as something I've seen before, but that appears to be the plan -- they don't show up on Google so they are surely custom.
To the opening poster -- Anyhow, the question about die taking arguments is very very basic, and is covered by most Perl books. It seems you need more basic Perl knowledge, and need to be reminded that good books exist -- die is covered early in most books. Web sites should not be ground zero for your first stabs at a new language. Try O'Reilly's Llama or Camel books. We'll be glad to help once you pick up the basic concepts, else you will just be asking questions all day and not really learning on your own.
Since I am a nice guy, try this with this strange "font" code, it might work, might not:
die (font( {-size=>5, -color=>'Lime'} , $DBI::errstr ));
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.