Thread Problem mit WWW::Mechanize: oder was anderem ;) (18 answers)
Opened by FlorianL at 2007-06-30 21:35

renee
 2007-07-02 17:22
#37595 #37595
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Das .+ vor WarPills brauchst Du nicht...

Vielleicht gefällt Dir der .ini-Style ja besser:

test.ini
Code: (dl )
1
2
3
[config]
user=beispieluser
max_files=19


Skript:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl

use strict;
use warnings;
use Config::IniFiles;

my $file = 'test.ini';

tie my %hash, 'Config::IniFiles', (-file => $file );
my %config = %{ $hash{config} };

print qq~
Database user: $config{user}
Maximum files: $config{max_files}
~;
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 Problem mit WWW::Mechanize: oder was anderem ;)