Thread Subs für Reiterwechsel
(10 answers)
Opened by J-jayz-Z at 2005-07-18 22:57
Okay, hier ein kleines snippet:
Code: (dl
)
1 #!/usr/bin/perl 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 |