Thread in array suchen
(4 answers)
Opened by Strazke at 2005-08-26 01:41
jo, mit map
oder mit grep: Code: (dl
)
@new = grep { /foo/ } @bar; <!--EDIT|J-jayz-Z|1125009154--> perl -Mstrict -Mwarnings -e 'package blub; sub new { bless {} } sub bar {my $self=shift; $self->{bla}="5065726c2d436f6d6d756e697479"; return $self->{bla};} my $foo=blub->new();print "Hallo ";print pack("H*",$foo->bar()); print "\n"'
http://perl-tutor.de |