Re: [BUGS] Workaround to get arrays for plperl

2008-03-30 Thread Eugen.Konkov
an not pass them as arrays - Original Message - From: "CaT" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Sunday, March 30, 2008 4:27 PM Subject: Re: [BUGS] Workaround to get arrays for plperl On Sun, Mar 30, 2008 at 04:23:07PM +0300, [EMAIL PROTECTED] wr

Re: [BUGS] Workaround to get arrays for plperl

2008-03-30 Thread CaT
On Sun, Mar 30, 2008 at 04:23:07PM +0300, [EMAIL PROTECTED] wrote: > It seems that function get arrays as strings in plperl. > This is a little workaround who want pass arrays to plperl functions > > my( $strarr )= @_; > $strarr =~ s/{/[/g; > $strarr =~ s/}/]/g; > my $arr= eval $strarr; > > NOTIC

[BUGS] Workaround to get arrays for plperl

2008-03-30 Thread Eugen.Konkov
It seems that function get arrays as strings in plperl. This is a little workaround who want pass arrays to plperl functions my( $strarr )= @_; $strarr =~ s/{/[/g; $strarr =~ s/}/]/g; my $arr= eval $strarr; NOTICE: you must create you function as plperlu and add language: create language plperlu;