[ic] Can IC always look in ~/pages/?
Peter
peter at pajamian.dhs.org
Sat Oct 2 00:04:33 UTC 2010
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.
Peter
More information about the interchange-users
mailing list