On Thu, Oct 2, 2008 at 2:45 PM, Bill Cunningham <[EMAIL PROTECTED]> wrote:
> Ok so the string that is passed to perror is the name of a function?
It can be whatever you want it to be. Traditionally, the name of the
program is used, so you get something like this printed to the
terminal window:
myprog: Unable to open file
That's so in case you are piping multiple outputs or running things in
the background you know what program had the error. You want it to be
somewhat user-centric, printing function names will be confusing to
the user, whereas the name of the program will make more sense.
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi