Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

mjl69 (6173)

mjl69
  (email not shown publicly)

Journal of mjl69 (6173)

Thursday December 08, 2005
03:36 PM

All modules must end with a positive value

[ #27896 ]

If all modules must end with a true value, then why not use a statement that carries a positive message which encourages true, positive values.

For example:

'Eat more leafy, green vegetables.'

As long as there is this requirement for a true value at the end of the module, it may as well carry a positive message to the reader.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • In the past, I've returned the documentation as the 'true' value:
    << '=cut';

    =head1 NAME --  Bla Bla

    ...

    =cut
    This gives a new meaning to if you don't get the documentation, your code is broken.
  • when

    1;

    got old, I started using

    42;

    but of course the answer isn't very much use without the question so now I just end with the following quandry

    "This statement is false.";

    Cheers,
    L~R