Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Useless use of a constant (ict) in void context

by LanX (Saint)
on Nov 15, 2013 at 13:27 UTC ( [id://1062739]=note: print w/replies, xml ) Need Help??


in reply to Useless use of a constant (ict) in void context

Ehm ... the code you've posted doesn't show any use strict so I can only speculate that something may be malformed in the "strict" part.

Unicode sideeffects ?

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^2: Useless use of a constant (ict) in void context
by hdb (Monsignor) on Nov 15, 2013 at 13:29 UTC

    Line 3 in .../Test/NoWarnings.pm ?

Re^2: Useless use of a constant (ict) in void context
by mje (Curate) on Nov 15, 2013 at 13:50 UTC

    As I said (and the error says) the suspect line is line 3 in Test::NoWarnings and it does contain use strict. I've pasted it below:

    package Test::NoWarnings; use 5.006; use strict; use warnings;

      Interestingly, line 3 is use 5.006;.

        If I delete the use 5.006; so it is now as below, it now gives:

        package Test::NoWarnings; use strict; use warnings; use Carp ();

        Useless use of a constant (rnings) in void context at I:/strawberry-perl-5.14.2. 1-32bit-portable/perl/vendor/lib/Test/NoWarnings.pm line 3.

        At the risk of sounding offensive (not intended). If you typed your code the way you typed your question:

        strawberry-perl-5.14.2.1-3 2bit-portable/perl/vendor
        (note the 2bit-portable).

        I'm inclined to go with Rolf (LanX), and suggest it was probably a typo.

        Again. No offense intended.

        --Chris

        #!/usr/bin/perl -Tw
        use Perl::Always or die;
        my $perl_version = (5.12.5);
        print $perl_version;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1062739]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found