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

NAME

B::Lint::StrictOO - Apply strict to classes and methods

VERSION

Version 0.02

SYNOPSIS

Validates that classes exist, that methods that are called on classes and objects, and variables aren't used as method names.

  $ perl -MB::Lint::StrictOO -MO=Lint,oo my_file.pl

  sub Hickory::Dickory::dock;

  Mouse->dockk;           # Class Mouse doesn't exist
  Hickory::Dickory->dock;
  Hickory::Dickory->$_;   # Symbolic method call
  $obj->dockk;            # Object can't do method
  $obj->dock;
  $obj->$_;               # Symbolic method call

PRIVATE FUNCTIONS

match

See B::Lint's plugin documentation.

@classes = classes( file name )

AUTHOR

Joshua ben Jore, <jjore at cpan.org>

BUGS

Please report any bugs or feature requests to bug-b-lint-strictoo at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=B-Lint-StrictOO. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc B::Lint::StrictOO

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2006 Joshua ben Jore, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.