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 comment
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 comment
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 comment
;
my $tmpl_ref = $self->{'tmpl_file'}
? do { open(FH, "< $self->{'tmpl_file'}"); local $/; <FH> }
: &TEMPLATE;
$self->{template} = HTML::Template->new(
scalarref =
;
my $tmpl_ref = $self->{'tmpl_file'}
? do { open(FH, "< $self->{'tmpl_file'}"); local $/; <FH> }
: &TEMPLATE;
$self->{template} = HTML::Template->new(
scalarref =
@_;
my $tmpl_ref = $params{'template'}
? do { open(FH, "< $params{'template'}"); local $/; <FH> }
: &TEMPLATE;
$self->{template} = HTML::Template->new(
scalarref =
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 comment
($self->postamble || '');
open MAKEFILE, '< Makefile' or die $!;
my $makefile = do { local $/; <MAKEFILE> };
close MAKEFILE;
$makefile =~ s/\b(test_harness\(\$\(TEST_VERBOSE\), )/$1
g_path for input:\n$!";
binmode(BLOG, ':utf8') if $self->use_utf8;
my $blog_text = do {local $/; <BLOG>};
close BLOG;
my $page_id = ($blog_text =~ /^page_id:\s+(.*)/m) ? $1 : '';
m
$!;
$data .= do {local $/; <FILE>};
close FILE;
}
$data =~ s/^=/^=/gm;
open MODULE, $filename
or die $!;
my $module_text = do {local $/;<MODULE>};
close MODUL
e for input\n";
binmode(TEMPLATE, ':utf8') if $self->use_utf8;
my $template_text = do {local $/; <TEMPLATE>};
close TEMPLATE;
return $template_text;
}
sub render {
my ($self, $tem
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 comment
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 comment
return unless /\.pm$/;
my $text = undef;
if (-f && -r) {
open IN, $_;
$text = do { local $/; <IN> };
close IN;
$HANDLERS{ $_ }{TEXT} = $text;
}
}
sub load_handlers {
my ($self
MPLATES->{$_}{error}) {
return
}
if (-f && -r) {
open IN, $_;
my $text = do { local $/; <IN> };
close IN;
unless ($TEMPLATES->{$_}{code} = Template::Document->new( $PARSER->pa
ly
close the file at block exit. If the file is already open, just use this:
$var = do { local $/; <INPUT> };
For ordinary files you can also use the read function.
read( INPUT, $var, -s INPU
open UIN, '<:utf8', 'Uni_write.tmp' or die "Can't open Uni_write.tmp";;
my $result = do { local $/; <UIN>; };
close UIN;
is($result, $expect, $name);
}
fmwrtest OUT1 => <<EOFORMAT, <<EOEXPE
{
my $test_out = do { local $/; <DATA> };
skip( "Can't fork '$^X': $!", 1)
unless open my $fh, qq[$^X "-I../lib" $pod_functions |];
my $fake_out = do { local $/; <$fh> };
skip( "Pipe err
g_path for input:\n$!";
binmode(BLOG, ':utf8') if $self->use_utf8;
my $blog_text = do {local $/; <BLOG>};
close BLOG;
my $page_id = ($blog_text =~ /^page_id:\s+(.*)/m) ? $1 : '';
m
e for input\n";
binmode(TEMPLATE, ':utf8') if $self->use_utf8;
my $template_text = do {local $/; <TEMPLATE>};
close TEMPLATE;
return $template_text;
}
sub render {
my ($self, $tem
$!;
$data .= do {local $/; <FILE>};
close FILE;
}
$data =~ s/^=/^=/gm;
open MODULE, $filename
or die $!;
my $module_text = do {local $/;<MODULE>};
close MODUL