in reply to Print and Die!

Perl doesn't know about colours. Colour is a property of the displaying device - not of Perl.

But you can give die arguments, just like print.

Abigail

Replies are listed 'Best First'.
Re: Re: Print and Die!
by flyingmoose (Priest) on Feb 06, 2004 at 21:24 UTC
    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 ));
    A reply falls below the community's threshold of quality. You may see it by logging in.