Thread Liste austeilen
(2 answers)
Opened by Pro_Galli at 2007-10-02 10:16 Code (perl): (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; my $file = '/pfad/zur/datei.txt'; my @all_lists; { local $/ = "\nArbeitsplatz"; open my $in, '<', $file or die $!; while( my $entry = <$in> ){ chomp $entry; $entry = "Arbeitsplatz" . $entry unless $entry =~ /^Arbeitsplatz/; push @all_lists, $entry; } close $in; } print "Neue Liste: $_\n" for @all_lists; ungetestet... OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/) -- Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html Perl-Entwicklung: http://perl-services.de/ |