Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Prototyping - is it necessary?by bioMan (Beadle) |
on Sep 01, 2005 at 19:49 UTC ( [id://488475]=note: print w/replies, xml ) | Need Help?? |
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!
In Section
Seekers of Perl Wisdom
|
|