$0 )
or _die("Could not open script for reading '$0': $!");
my $script= do { local $/; <IN> };
close IN;
# update the script
if ( $script =~
s#(BEG
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
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 ) {
from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS
# 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
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};
alOptions';
my $yaml;
my $options;
sub _read_data {
unless ($yaml) {
$yaml = do { local $/; <DATA> };
($options) = YAML::PP::Load($yaml);
}
}
sub install_options {
my ($
from $filename: $!\n";
next;
}
info("Scanning $filename ...");
my $c = do { local $/; <IN> };
close IN;
my %file = (orig => $c, changes => 0);
# Temporarily remove C/XS
':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
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
rn if ! defined $logfile;
open my $fh, "<", $logfile or return undef;
my $log = do { local $/; <$fh> };
close $fh;
my $es = eval { decode("utf-8", $log, Encode::FB_CROAK ) };
$
;
local *PATCHLEVEL;
if ( open PATCHLEVEL, "< $file" ) {
my $patchlevel = do { local $/; <PATCHLEVEL> };
close PATCHLEVEL;
if ( $patchlevel =~ /^#define PATCHLEVEL\s+(
ef $nameorref eq 'GLOB' ) {
*SMOKERSLT = *$nameorref;
$self->{_outfile} = do { local $/; <SMOKERSLT> };
$vmsg = "from anonymous filehandle";
} else {
if ( $nameorre
my $class = shift;
my $file = shift;
my $sqlite3 = shift || 'sqlite3';
my $command = do { local $/; <DATA> };
system("echo '$command' | sqlite3 '$file'") == 0 or die 'Create failed!';
}
=head2
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->
my $status;
if ( open REPORT, "< $a_rpt" ) {
my $report = do { local $/; <REPORT> };
close REPORT;
my $summary = ( parse_report_Config(
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