Thread Umfangreiche Hash Referenz mit Regex und Code kopieren (20 answers)
Opened by bianca at 2016-02-26 09:38

Gast janus_reg
 2016-02-26 17:43
#183993 #183993
Guest pq_unterwegs
es ging um deep copy...


geh doch:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
my $alt = {
    foo     => 'bar',
    code    => sub{
        my ($t) = @_;
        print $t;
    },
};

my $neu = $alt;
$neu->{code}->('Hallo Welt');

View full thread Umfangreiche Hash Referenz mit Regex und Code kopieren