Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: use strict (upper or lower case)

by Arien (Pilgrim)
on Aug 16, 2002 at 15:18 UTC ( [id://190668]=note: print w/replies, xml ) Need Help??


in reply to use strict (upper or lower case)

To start with your question: The correct form is use strict;

I can't verify what you're seeing on NT at the moment, but on Win98 I get this using ActiveState's port (Build 633):

  1. use strict; works as expected and reports what it's supposed to.
  2. use Strict; shows no errors indicating that Strict.pm cannot be found, but doesn't flag any non-strict code, so it is obivously not being hooked up.

This is a bug due to the fact that filenames under Windows are not case-sentitive: the file strict.pm can be found as Strict.pm. So when Perl goes looking for Strict.pm, strict.pm is found and loaded. However, the import sub will not be run (and the hints for the Perl parser don't get set) as would happen automatically if you use strict;.

— Arien

Edit: Abigail-II said most of this and said it faster...

Replies are listed 'Best First'.
Re: Re: use strict (upper or lower case)
by Anonymous Monk on Aug 16, 2002 at 16:29 UTC
    My script is too long to list. Is the use of "use warnings" okay instead? My script works fine with "use warnings".

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2025-02-09 02:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (95 votes). Check out past polls.