July 30 2020 Perl 7: An Opinionated Introduction Back

Suppressing Warnings (1)

        $ cat foo.pl
        use strict;
        use warnings;
        my ($i, $j, $k);
        $i = 'foo';
        $k = $i . $j;
        print "$k\n";
        $ perl foo.pl
        Use of uninitialized value $j in concatenation (.) or string at foo.pl line 5.
        foo


Home Last TOC Copyright © 2020 James E Keenan Back Next