Thread Typ einer Variablen (scalar, list, etc.) herausfinden (4 answers)
Opened by tsy at 2008-06-12 14:14

renee
 2008-06-12 14:19
#110987 #110987
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code (perl): (dl )
1
2
3
4
5
6
7
my $scalar = 'test';
my $arrayref = [1,2,3];
my $hashref = { hallo => 1 };

for ($scalar, $arrayref, $hashref ){
    print ref( $_ ),"\n"
}
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 Typ einer Variablen (scalar, list, etc.) herausfinden