Thread Text blockweise parsen (9 answers)
Opened by Lauvia at 2014-03-21 11:07

renee
 2014-04-04 15:00
#174631 #174631
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
my $file    = '174621_testdb2_CanA.txt';

# slurp all the content into the scalar
my $content = do { local ( @ARGV, $/ ) = $file; <> };

# needed as $VAR1 is used in the dump
my $VAR1;

# eval the content to get the Perl datastructure
eval $content;

print $VAR1->[0]->{SDOM_REFERENCE};
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/

View full thread Text blockweise parsen