in reply to Re: Prototyping - is it necessary?
in thread Prototyping - is it necessary?
Yes, I caught that bug after my post. Originally I had a statement before
(my $datafile, $chomp) = @_;That read,
my $chomp = 0;... but I removed it knowing that if I could remove the prototyping and only pass in a value for $datafile then $chomp would automatically be set to undef. I forgot to move "my" outside the parentheses. Poof! a bug!
|
---|