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 $root_dir = cwd();
local $ENV{GIT_DIR} = $root_dir;
my $input = do { local $/; <STDIN> };
$fail_msg = $self->check_input($input);
}
catch {
my $error
use warnings;
Code::TidyAll::Git::Prereceive->check();
# or
my $input = do { local $/; <STDIN> };
# Do other things with $input here
my $hook = Code::TidyAll::Git::Prerecei
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
$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
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
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
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
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
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
ent';
} elsif ( ref $pfile eq 'GLOB' ) {
*PATCH = *$pfile;
$content = do { local $/; <PATCH> };
$self->{pfinfo} ||= 'file content';
} else {
my $full_name = Fil
Carp::croak( "Cannot open '$full_name': $!" );
};
$content = do { local $/; <PATCH> };
close PATCH;
}
$self->{v} and print "Get patch from $self->{pfinfo}
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+(
;
local *REPORT;
if ( open REPORT, "< $self->{file}" ) {
$self->{body} = do { local $/; <REPORT> };
close REPORT;
} else {
require Carp;
Carp::croak( "Cann