Thread like:start ... like:end: Paar Stück zeilen ausschneiden (6 answers)
Opened by polkana at 2005-02-11 00:52

Ronnie
 2005-02-11 09:16
#51636 #51636
User since
2003-08-14
2022 Artikel
BenutzerIn
[default_avatar]
Du kannst auch den Flip-Flop-Operator (/#domain:start/../#domain:end/) verwenden:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl

use strict;
use warnings;

use Data::Dumper;

my @set;
while(<DATA>) {chomp; push @set, $_ if (/#domain:start/../#domain:end/)}
print Dumper \@set;
exit;

_ _DATA_ _
bla bla
bla
#domain:start
Hello
World
#domain:end
blub

View full thread like:start ... like:end: Paar Stück zeilen ausschneiden