You probably want to use a hash in Perl, not an array.
my %data = ( text1 => 'text', text2 => 'tes1', text3 => 'tes2', );
Also, your PHP syntax is wrong. Those colons should be => like in Perl.
In reply to Re: php arrays to perl
by tobyink
in thread php arrays to perl
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |