MIME::Lite Attach Method and Strict Pragma 
Author Message
 MIME::Lite Attach Method and Strict Pragma

MIME::Lite is generating errors when I use strict. My code is:

    my $msg = new MIME::Lite

                 To      =>($cgi->param($i)),
                 Subject =>($cgi->param('subject')),
                 Type    =>'multipart/mixed';
    attach $msg
            Type     =>'TEXT',
               Data     =>($cgi->param(message));
     attach $msg
                Type     =>$type,
                Path     =>($cgi->param(attach));
    $msg->send;

strict doesn't like the "attach" method saying:

Bareword "attach" not allowed while "strict subs" in use at mailadmin.cgi
line 38.
Unquoted string "attach" may clash with future reserved word at
mailadmin.cgi

What do I do?

Gabe



Wed, 18 Jun 1902 08:00:00 GMT  
 MIME::Lite Attach Method and Strict Pragma
Gabe (comp.lang.perl.misc):
Quote:
>MIME::Lite is generating errors when I use strict. My code is:
>                Path     =>($cgi->param(attach));

                                         ^^^^^^^

Quote:
>Bareword "attach" not allowed while "strict subs" in use at mailadmin.cgi
>line 38.

I can't tell which is line 38, but isn't it more likely it would
complain about that one?

--
It's 106 miles from Birmingham, we've got an eighth of a tank of gas,
half a pack of Dorittos, it's dusk, and we're wearing contacts.
        - Malcolm Ray



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. MIME Lite attaching a tar file

2. newbie : MIME::Lite and attaching files

3. Help, MIME-Lite Error using send_by_smtp method!

4. POST method using MIME::Lite through MS Exchange

5. Lite.pm - MIME::Lite

6. Problem with MIME::Lite and MIME-tools

7. problems with MIME::Lite and MIME-tools

8. Problem with MIME::Lite and MIME-tools

9. Bug in Perl 5.000 strict vars pragma

10. Question on the "use strict" pragma

11. Question on the "use strict" pragma

12. strict pragma and G::Image::newFromGif(FILEHANDLE)

 

 
Powered by phpBB® Forum Software