in reply to Re: Where does <GEN1> come from?
in thread Where does <GEN1> come from?

It's a barely documented and somewhat dubious feature.

Personally I find it an useful feature. However I hardly ever remember having used it: more precisely most of my warnings and errors are meant for the users of some script. Thus I end them with "\n". In the rare case I have some that are meant for people working on the script itself, I don't append it. A tiny example was posted here.

Replies are listed 'Best First'.
Re^3: Where does <GEN1> come from?
by BrowserUk (Patriarch) on May 24, 2007 at 19:50 UTC

    The default of appending the line number at which a message is generated is a fine and useful feature.

    The default of also appending the filehandle and linenumber of the last line of the last "file" read by the script, or any of the modules it uses, is at best dubious, at worst, confusing.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.