[ic] Can IC always look in ~/pages/?

Stefan Hornburg (Racke) racke at linuxia.de
Sun Oct 3 09:52:00 UTC 2010


On 10/02/2010 02:04 AM, Peter wrote:
> On 02/10/10 12:18, Grant wrote:
>>>>> shift just grabs the first argument for the function from @_;
>>>> I tried to replace:
>>>>
>>>> my $path = shift;
>>>>
>>>> with:
>>>>
>>>> my $path = @_;
>>>>
>>>> but it doesn't work.  Does shift do something special here?
>>> That would return the number of elements in the array @_.  You want:
>>>
>>> my ($path) = @_;
>>>
>>>
>>> Peter
>>
>> I forgot to mention, it seems that $Vend::FinalPath can be altered in
>> a usertag but not in a [perl] block.  Is that the way it works or am I
>> doing something wrong?
>>
>> [perl] $Vend::FinalPath = $Scratch->{path}; [/perl]
>
> $Vend::FinalPath is a global variable and as such can only be accessed
> in global code, not in local (catalog-level) code.
>

In fact you can change it from a catalog-level usertag, although this
is not intended.

Regards
	Racke

-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team




More information about the interchange-users mailing list