Leser: 21
1 2
my $filecontent = "Inhalt der Datei <Release>12</Release>"; my ($nr) = $filecontent =~ m!<Release>(\d+)</Release>!;
1 2 3 4
my $file = './foo.file'; open my $OF, $file or die $!; my $filecontent = join '', <$OF>; close $OF or die $!;
1
2
3
4
5
my $file = './foo.file';
local $/;
open my $OF, $file or die $!;
my $filecontent = <$OF>;
close $OF or die $!;