Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Exploit this for fun and, well, fun. (LONG)

by chipmunk (Parson)
on Aug 07, 2001 at 18:11 UTC ( [id://102773]=note: print w/replies, xml ) Need Help??

in reply to Exploit this for fun and, well, fun. (LONG)

Does not use -w or strict. These are great for development. But if it could compile under -w and strict, and produce no warnings or halts, then it is safe to take them out right?
I would have to disagree with that. It's true that -w and use strict provide useful checks at compile time, but they also operate at run time. strict 'refs', which prevents the use of symbolic references, only works at run time. Warnings that occur at run time include 'Use of uninitialized value', 'Filehandle opened only for input', and 'Exiting subroutine via next'.

So, if your program compiles without error or warning, that's great, but there may still be bugs that -w and use strict can only report while the program is running.

  • Comment on Re: Exploit this for fun and, well, fun. (LONG)

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-07-19 11:53 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.