top | item 23173180

(no title)

prakashk | 5 years ago

Normal error message in Perl:

    $ perl -Mstrict -e 'say $x'
    Global symbol "$x" requires explicit package name (did you forget to declare "my $x"?) at -e line 1.
    Execution of -e aborted due to compilation errors.
With the addition of `Coy` module [1]:

    $ perl -Mstrict -MCoy -e 'say $x'

        -----
        Gautama dies near
        a monastry. Two woodpeckers
        fly over the lake.
        -----

                Or Wunt's commentary...

                Global symbol "$x" requires explicit package name (did you
                forget to declare "my $x"?)

                        (Analects of -e: line 1.
                         Execution of -e aborted due to compilation
                         errors.)

[1]: https://metacpan.org/pod/Coy

discuss

order

No comments yet.