App-Photobear
view release on metacpan or search on metacpan
lib/App/Photobear.pm view on Meta::CPAN
Carp::croak("[url_type] ", "Failed to execute: $!\n");
} elsif ($? & 127) {
Carp::croak("[url_type] ", sprintf("Child died with signal %d, %s coredump\n"),
($? & 127), ($? & 128) ? 'with' : 'without');
} elsif ($? >> 8) {
Carp::croak("[url_type] ", sprintf("Child exited with value %d\n", $? >> 8));
}
my @output = `$cmd`;
for my $line (@output) {
chomp $line;
if ($line =~ /^content-type/i) {
# Strip color codes
$line =~ s/\e\[[\d;]*[a-zA-Z]//g;
my ($type) = $line =~ /Content-Type: (.*)/i;
return $type;
}
}
return undef;
}
sub curl {
( run in 4.734 seconds using v1.01-cache-2.11-cpan-524268b4103 )