The use warnings; Statement in Perl

Adding this statement to the begining of our code will trigger warnings for our code wherever relevant. Adding ‘use warnings Fatal => ‘all’; to our code will promote all warnings to errors and die immediately on the first warning. #!/usr/bin/perl use strict; use warnings; my %currencies = ( USD => 4.1, EURO => 4.4, GBP […]

The use strict; Statement in Perl

The Perl programming language started as a hack, as a tool that its sole purpose was to fulfill specific needs. When Perl’s popularity grew and more and more people started to use it was already too late to enforce rigid grammar rules. Adding the ‘use strict;’ statement in the beginning of the file will enforce […]

Skip to content Update cookies preferences