ar_foo
and $bar
come from a text file.This throws an illegal divide by zero error:
my @ar_foo = ("1", "2", "3"); my $bar = "5"; my $x = $bar / scalar(@ar_foo);
submitted by /u/secreag
[link] [comments]
ar_foo
and $bar
come from a text file.my @ar_foo = ("1", "2", "3"); my $bar = "5"; my $x = $bar / scalar(@ar_foo);