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

Grant emailgrant at gmail.com
Fri Oct 1 23:08:17 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

Thanks Peter, I'm getting to know IC pretty well but my perl skills
are still sorely lacking.

- Grant



More information about the interchange-users mailing list