onstants();
sub constants {
seek DATA, 0, 0; # this reads the entire script
my $data = do { local $/; <DATA> };
while( $data =~ m|=item (\w+)(?:\s+([^\n]+))?\n\s+?=cut\s+sub \1 \{ (-?\d+) \}|g ) {
o read from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS comm
from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS
o read from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS comm
# there is something to process
if ( open( IN, $filename ) ) {
$contents= do { local $/; <IN> };
close IN;
}
# couldn't read file
else {
warn qq{Could not
o read from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS comm
o read from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS comm
o read from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS comm
o read from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS comm
$0 )
or _die("Could not open script for reading '$0': $!");
my $script= do { local $/; <IN> };
close IN;
# update the script
if ( $script =~
s#(\s*
o read from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS comm
from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS
alOptions';
my $yaml;
my $options;
sub _read_data {
unless ($yaml) {
$yaml = do { local $/; <DATA> };
($options) = YAML::PP::Load($yaml);
}
}
sub install_options {
my ($
':encoding(UTF-8)';
binmode STDOUT, ':encoding(UTF-8)';
# Decoding TOML
my $toml = do{ local $/; <STDIN> };
my ($parsed, $error) = from_toml $toml;
# Encoding TOML
say to_toml({
stu
e List::Util qw/ any /;
use Moo;
with 'App::Spec::Role::Plugin::Subcommand';
my $yaml = do { local $/; <DATA> };
sub install_subcommands {
my ($class, %args) = @_;
my $parent = $args{spec};
sif ( ref $srcpath eq 'GLOB' ) {
*POLICY = *$srcpath;
$self->{_policy} = do { local $/; <POLICY> };
$vmsg = "anonymous filehandle";
} else {
$srcpath = File::Spec
);
$vmsg = "default content";
} else {
$self->{_policy} = do { local $/; <POLICY> };
close POLICY;
$vmsg = $p_name;
}
}
$self->
o read from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS comm
from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS
o read from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS comm
my $status;
if ( open REPORT, "< $a_rpt" ) {
my $report = do { local $/; <REPORT> };
close REPORT;
my $summary = ( parse_report_Config(