Thread 1. Jippiee und 2. Hashes und Arrays aus Variablen (8 answers)
Opened by oes at 2008-02-26 19:57

renee
 2008-02-26 20:48
#106374 #106374
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Lass die runden Klammern weg und dann passt es so ziemlich:

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

use strict;
use warnings;

my @array;
push( @array, 1 );
push( @array, 2 );

print $array[0];

my %hash = ( key1 => 'value1', key2 => 'value2' );
print $hash{'key1'};
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 1. Jippiee und 2. Hashes und Arrays aus Variablen