in reply to RE: Can't use string ("100") as an ARRAY ref while "strict refs" in use at ./divide_con_210.pl line 19.

Yes, you should use $number instead of $#$number. The problem here is when you use $#$number, this tells perl that you want the length of an array ref $number, but in this case that is not array ref, it's a string "100".
  • Comment on Re^2: Can't use string ("100") as an ARRAY ref while "strict refs" in use at ./divide_con_210.pl line 19.
  • Select or Download Code