31 Oct 2001 00:05:01 UTC
- Distribution: uninit
- Module version: 1.00
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (390 / 0 / 0)
- KwaliteeBus factor: 0
- 48.28% Coverage
- License: unknown
- Activity24 month
- Download (2.1KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userSIMON Simon Cozens
Why not adopt me?This distribution is up for adoption! If you're interested then please contact the PAUSE module admins via email.
uninit - Warn about uninitialized variables
perl -Muninit myprogram
It's all very well being warned about the use of
undefif you don't know what variable it is that contains
undef, especially if you've got more than one variable in a line.
uninitattempts to do compile-time static checking of your program to see if any variables are used before they have any values assigned to them; it also reports which variable actually caused the problem.
It isn't guaranteed to catch all cases, and you can probably trick it with judicious use of
eval, but I can't do anything about that. It's only a guideline.