| 1 | #!/usr/bin/env perl | ||||||||||||||||||||||||||||
| 2 | # PODNAME: locale_simple_scraper | ||||||||||||||||||||||||||||
| 3 | # ABSTRACT: Command line tool for finding tokens in code | ||||||||||||||||||||||||||||
| 4 | 5 | our $VERSION = '0.200'; | |||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | 5 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 8 | 5 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | 5 | ▶ | use Locale::Simple::Scraper 'scrape'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 5 | print STDERR "locale_simple_scraper is deprecated, use: locale-simple scrape\n"; | |||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 5 | ▶ | eval { scrape(@ARGV); 1 } or do { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 15 | 2 | my $err = $@; | |||||||||||||||||||||||||||
| 16 | 2 | ▶ | if ( ref $err and ref $err eq 'Locale::Simple::Scraper::BadCall' ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
ref $err and ref $err eq "Locale::Simple::Scraper::BadCall"
MC/DC0%0/2
ref $err and ref $err eq "Locale::Simple::Scraper::BadCall"
ref $err
ref $err eq "Locale::Simple::Scraper::BadCall"
Truth table33%1/3
A and B
A= ref $errB= ref $err eq "Locale::Simple::Scraper::BadCall"
| |||||||||||||||||||||||||||||
| 17 | 2 | print STDERR $err->{message}, Locale::Simple::Scraper::usage(); | |||||||||||||||||||||||||||
| 18 | 2 | exit 2; | |||||||||||||||||||||||||||
| 19 | } | ||||||||||||||||||||||||||||
| 20 | 0 | ▶ | $err .= "\n" unless $err =~ /\n\z/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 21 | 0 | print STDERR $err; | |||||||||||||||||||||||||||
| 22 | 0 | exit 1; | |||||||||||||||||||||||||||
| 23 | }; | ||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||
| 25 | __END__ | ||||||||||||||||||||||||||||