| Catalyst-Plugin-Devel-ModuleVersions documentation | Contained in the Catalyst-Plugin-Devel-ModuleVersions distribution. |
Catalyst::Plugin::Devel::ModuleVersions - Dump your loaded module versions to the debug-screen
version 0.100330
Uses Class::C3 to extend the catalyst dump_these, and add some more information at the end of the debug screen, containing a list of strings that each is "Module::Name VERSION", ala:
"Catalyst::Plugin::Devel::ModuleVersions 0.0001"
Andreas Marienborg <andremar@cpan.org>
This software is copyright (c) 2010 by Andreas Marienborg.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Catalyst-Plugin-Devel-ModuleVersions documentation | Contained in the Catalyst-Plugin-Devel-ModuleVersions distribution. |
package Catalyst::Plugin::Devel::ModuleVersions; our $VERSION = '0.100330'; # ABSTRACT: Dump your loaded module versions to the debug-screen use strict; use warnings; use MRO::Compat; use mro 'c3'; sub dump_these { my $c = shift; ($c->next::method(@_), [ "Loaded Modules" => [ grep { defined $_ } map { my $mod = $_; $mod =~ s/\.pm$//; $mod =~ s/\//::/g; my $version = eval {no strict; ${"${mod}::VERSION"} }; $version && "$version" ne "-1" ? $mod . " " . $version : undef } sort keys %INC ] ]); } 1; __END__