Navigation Menu

Skip to content

Commit

Permalink
a few more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 16, 2015
1 parent 36abce9 commit ec6fc90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Mojo/Loader.pm
Expand Up @@ -147,6 +147,7 @@ individually.
Extract embedded file from the C<DATA> section of a class, all files will be
cached once they have been accessed for the first time.
# List embedded files
say for keys %{data_section 'Foo::Bar'};
=head2 file_is_binary
Expand Down Expand Up @@ -174,6 +175,7 @@ Search for modules in a namespace non-recursively.
Load a class and catch exceptions. Note that classes are checked for a C<new>
method to see if they are already loaded.
# Handle exceptions
if (my $e = load_class 'Foo::Bar') {
die ref $e ? "Exception: $e" : 'Not found!';
}
Expand Down

0 comments on commit ec6fc90

Please sign in to comment.