Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not depend on non-core Perl modules #361

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

oschwald
Copy link
Member

No description provided.

@oschwald oschwald force-pushed the greg/core-only-man-page-generation branch from 2bbaf08 to a09fa4b Compare December 10, 2024 16:47
my $header = read_file("$Bin/../include/maxminddb.h");
open my $header_fh, '<', "$Bin/../include/maxminddb.h"
or die "Failed to open header file: $!";
my $header = do { local $/; <$header_fh> };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to error check the read? I think I've used if defined $header in the past.

$file,
);
open my $fh, '<', $file or die "Failed to open man file for reading: $!";
my @lines = <$fh>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above, although it's less clear to me how to error check in this case.

@horgh
Copy link
Contributor

horgh commented Dec 11, 2024

Possibly these are overly pedantic. I'm okay merging too :-P

@horgh horgh merged commit 39336f0 into main Dec 11, 2024
29 checks passed
@horgh horgh deleted the greg/core-only-man-page-generation branch December 11, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants