Thread push zu arrayref (33 answers)
Opened by Froschpopo at 2008-05-10 16:42

RPerl
 2008-05-10 16:58
#109509 #109509
User since
2006-11-26
384 Artikel
BenutzerIn

user image
Hm - funktioniert bei mir leider nicht. Schade!

Code: (dl )
1
2
Type of arg 1 to push must be array (not private variable) at arrref.pl line 9, near ""foobar";"
Execution of arrref.pl aborted due to compilation errors.


mit

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

use strict;
use warnings 'all';

my @array = ();
my $arref = \@array;

push $arref, "foobar";


gruss
rperl

View full thread push zu arrayref