[MINC-users] mincpik error

Andrew Janke a.janke at gmail.com
Tue Jan 10 20:39:50 EST 2012


Hi Mishkin,

> Can't use string ("0") as an ARRAY ref while "strict refs" in use at
> ./mincpik line 435.
>
> I can get rid of the error by changing the offending code from:
>
>   # get range if not defined
>   if(!defined(@{$opt{'image_range'}[0]})){
>      print STDERR "Getting image range\n" if $opt{'verbose'};
>
> to this:
>   # get range if not defined
>   my @image_range_array = $opt{'image_range'};
>   if(!defined($image_range_array[0])){
>      print STDERR "Getting image range\n" if $opt{'verbose'};

Interesting, I have no idea why I did that originally. The easiest way
to fix this is to just drop the @{...}, I have committed a fix for
this here:

   https://github.com/andrewjanke/minc/commit/ba0cea6b141d874feea60238690f548d2f034baa

Thanks


a


More information about the MINC-users mailing list