[sr-dev] another syntax error
Daniel-Constantin Mierla
miconda at gmail.com
Mon Jun 1 18:24:05 CEST 2009
On 06/01/2009 07:19 PM, Andrei Pelinescu-Onciul wrote:
> On Jun 01, 2009 at 18:59, Juha Heinanen <jh at tutpro.com> wrote:
>
>> Juha Heinanen writes:
>>
>> > > !defined $fU fastest
>>
>> one more question related to this: how do i make a variable
>> "undefined"? is there a function uset($foo) or undefine($foo)
>>
>
> no
>
just for PV case, there is a function exported by pv module pv_unset("$pv"):
http://sip-router.org/docbook/sip-router/branch/master/modules_k/pv/pv.html#id3057295
Cheers,
Daniel
>> or do i need to use slow method
>>
>> $foo = $null
>>
>
> Yes, assign anything that is undefined, e.g.:
>
> $foo = $undefined_value will work too.
>
> Andrei
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
--
Daniel-Constantin Mierla
http://www.asipto.com/
More information about the sr-dev
mailing list