Thread Typ einer Variablen (scalar, list, etc.) herausfinden
(4 answers)
Opened by tsy at 2008-06-12 14:14 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/ |