in reply to Return variable hangs script

Another simple question.. did you include use strict; in your code? If not, then a number of side effects could be getting you.

Either way, check to make sure you haven't defined a function called "count" or imported a package which exports count as a function or variable.

Replies are listed 'Best First'.
Re^2: Return variable hangs script
by joedoc (Initiate) on Jul 03, 2007 at 13:59 UTC
    strict wasn't used in this particular script, so I'll add that and see what happens. The other items you mentioned were carefully checked. I should mention that I'm working on a project converting older Perl code (which was converted from ColdFusion...), created by people who really don't know Perl all that well. I can barely get them to understand what a reference is, so getting them to use strict with any consistency is like pulling teeth.