Thread Hashslice aus Hashref ? (14 answers)
Opened by KurtZ at 2008-04-17 20:39

renee
 2008-04-18 19:32
#108542 #108542
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Ohne use strict; - ja...

Code (perl): (dl )
1
2
3
4
5
6
7
#!/usr/bin/perl

use warnings;

my $h = { b1 => 3, c1 => 7 };
my @slice = @$h{b1,c1};
print "Slice: @slice\n";


Code: (dl )
1
2
C:\>slice.pl
Slice: 3 7


Mit strict kommen die von betterworld genannten "bareword"-Meldungen...
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 Hashslice aus Hashref ?