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

Grant emailgrant at gmail.com
Fri Oct 1 23:18:23 UTC 2010


>>> 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]

- Grant



More information about the interchange-users mailing list