Thread Net::SMTP->starttls() und $/ (4 answers)
Opened by bianca at 2015-08-19 09:10

Raubtier
 2015-08-20 11:08
#181848 #181848
User since
2012-05-04
1054 Artikel
BenutzerIn

user image
Naja, ich weiß nicht. Dann müsste man ja auch bei jedem Array-Zugriff erstmal testen, dass $[ richtig gesetzt ist (zumindest bei alten Perl-Versionen, inzwischen ist das ja sicher 0).

Ein paar Quotes aus Perldoc:perlvar:
Quote
You should be very careful when modifying the default values of most special variables described in this document. In most cases you want to localize these variables before changing them, since if you don't, the change may affect other modules which rely on the default values of the special variables that you have changed.

und
Quote
Usually when a variable is localized you want to make sure that this change affects the shortest scope possible. So unless you are already inside some short "{}" block, you should create one yourself.

Letzteres hattest du nicht beachtet.

View full thread Net::SMTP->starttls() und $/