Leser: 1
4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
...
my $content;
{
local $/;
open my $fh,'<',$file or die $!;
$content = <$fh>;
close $fh;
}
...
1
2
3
4
5
6
7
8
9
...
my $content;
open my $fh,'<',$file or die $!;
{
local $/;
$content = <$fh>;
}
close $fh;
...
1
2
3
4
5
...
open my $fh,'<',$file or die $!;
my $content = do { local $/; <$fh>; };
close $fh;
...
1
2
3
4
5
6
7
8
#!/usr/bin/perl
use strict;
use warnings;
my $file = '/path/file.txt';
my $content = do{local (@ARGV,$/) = $file; <>};
print $content;
my $content = do { open my $fh, '<', $file or die $!; local $/; <$fh> };
use LWP::Simple; my $content = get("file://$file");
4 Einträge, 1 Seite |