Thread IO::Socket::SSL und require (18 answers)
Opened by bianca at 2015-04-14 17:10

bianca
 2015-04-15 06:21
#180674 #180674
User since
2009-09-13
7016 Artikel
BenutzerIn

user image
2015-04-14T18:29:33 GUIfreund
Also den BEGIN-Block weglassen.

Neee, denn genau da liegt mein Problem, dann schlägt nämlich der Compiler zu:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl
use strict;
use warnings;
use Net::FTP;

require IO::Socket::SSL;
IO::Socket::SSL->import( qw(SSL_VERIFY_CLIENT_ONCE) );

my $ftp = Net::FTP->new(
    'irgendeinurl',
    SSL_verify_mode => SSL_VERIFY_CLIENT_ONCE,
);

Quote
Bareword "SSL_VERIFY_CLIENT_ONCE" not allowed while "strict subs" in use at test.pl line 9.
Execution of test.pl aborted due to compilation errors.
10 print "Hallo"
20 goto 10

View full thread IO::Socket::SSL und require