On 2014-03-27 20:53, Natxo Asenjo wrote:

use strict;
use warnings;
use utf8;

That "use utf8;" is almost always wrong, see 'perldoc utf8', only use it if your source code is utf8 encoded.


if ($@) {
     die "$@";
}

Never test $@, only use the value of $@ after a failed eval.

--
Ruud



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to