Skip to content

Commit

Permalink
fix pop3 demo program
Browse files Browse the repository at this point in the history
Getopt::Long requires that implicit option variables ($opt_XXX) be declared with "our" and not "my". At least using Getopt::Long 2.38 / perl 5.14, this results in the $opt_* never getting any values filled in.
  • Loading branch information
daleevans committed Dec 25, 2015
1 parent e73fbd3 commit bbb70c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/pop3
Expand Up @@ -9,8 +9,8 @@ use blib;
use Getopt::Long;
use Net::POP3;

my $opt_debug = 0;
my $opt_user = undef;
our $opt_debug = 0;
our $opt_user = undef;

GetOptions(qw(debug user=s));

Expand Down

0 comments on commit bbb70c1

Please sign in to comment.