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

Peter peter at pajamian.dhs.org
Fri Oct 1 22:29:03 UTC 2010


On 02/10/10 05:45, 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




More information about the interchange-users mailing list