Net::POP3->new() fails in PerlApp compiled script

Discussion in 'Perl' started by Eric McDaniel, Sep 22, 2003.

  1. This may be a question for ActiveState support, but just in case anyone out
    there knows what the problem is...

    My call to Net::pOP3->new() works fine when run through the perl
    interpreter, but fails when I compile the script with PerlApp and run it. My
    system is Windows 2000, ActiveState Perl 5.8.0 build 806, PerlApp 5.2.0
    build 520.

    Here is the script:

    ##############################################################
    #!perl -w

    use strict;

    use Net::pOP3;

    my $p = Net::pOP3->new('mail.mydomain.com', Debug=>99)
    or die('Server connection error');
    ##############################################################

    The command'perl pop3.pl' yields this (successful) output:

    Net::pOP3: Net::pOP3(2.23)
    Net::pOP3: Net::Cmd(2.21)
    Net::pOP3: Exporter(5.566)
    Net::pOP3: IO::Socket::INET(1.26)
    Net::pOP3: IO::Socket(1.27)
    Net::pOP3: IO::Handle(1.21)

    Net::pOP3=GLOB(0x1d524ac)<<< +OK X1 NT-POP3 Server mail013.readyhosting.com
    (IMa
    il 7.10 2193398-16)
    Net::pOP3=GLOB(0x1d524ac)>>> RSET
    Net::pOP3=GLOB(0x1d524ac)<<< +OK
    Net::pOP3=GLOB(0x1d524ac)>>> QUIT
    Net::pOP3=GLOB(0x1d524ac)<<< +OK POP3 Server saying Good-Bye


    However, when I compile it with PerlApp ('perlapp pop3.pl') and run the
    resulting pop3.exe, it dies:

    Server connection error at pop3.pl line 7.


    Any ideas?

    Thanks.

    -Eric
     
    Eric McDaniel, Sep 22, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Klaus Schneider
    Replies:
    1
    Views:
    551
    Rolf Magnus
    Dec 2, 2004
  2. lander
    Replies:
    5
    Views:
    597
    bruce barker
    Mar 5, 2008
  3. Eric McDaniel
    Replies:
    3
    Views:
    114
    Eric McDaniel
    Sep 24, 2003
  4. justme

    perlapp question

    justme, Apr 13, 2005, in forum: Perl Misc
    Replies:
    0
    Views:
    76
    justme
    Apr 13, 2005
  5. Replies:
    1
    Views:
    92
    Anno Siegel
    May 8, 2005
Loading...

Share This Page