Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am using mime:lite (2.117). I am getting errors (namely the strict-subs error - but all the inverted commas are correct) when trying to use Reply-To=>'a@a.com' in it. In reading the mime:lite manpage, it does say that Reply-To is a valid fieldname, but is there something that I am doing wrong? Alex.

Replies are listed 'Best First'.
Re: Something Obvious?
by Abigail-II (Bishop) on Aug 29, 2002 at 14:14 UTC
    You didn't quote Reply-To, hence Reply-To=>'a@a.com' parses as 'Reply' - 'To', 'a@a.com'.

    Abigail

      oohh! I didn't realise that this one needed quotes round it. I don't understand why this one needs quotes, and From, To, Bcc, Cc etc don't. Is it because it is a hyphenated word? Thanks for your help Alex
        You don't need the quotes on the left hand side of a fat comma if the string looks like a valid identifier, with an optional leading dash.

        Reply-To is not a valid identifier - From, To, Bcc and Cc are.

        Abigail

Re: Something Obvious?
by sschneid (Deacon) on Aug 29, 2002 at 14:12 UTC
    If you're getting errors, chances are, you're doing something wrong. :) However, without your telling us what the errors are and showing us a slice of the offending code, I'm not sure what sort of help can be provided.

    scott.