Freezer has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am looking to call a couple of subroutines within a conditional. Something like:
I am looking to call a couple of subroutines within a conditional. Something like:
However I get the following error message:my $starting_point; my $continue_tag = "TRUE"; while ($continue_tag == "TRUE"){ look_through_file ($starting_point, $continue_tag); create_output (@array_of_lines, $entry_no_new); }
Basically the $continue_tag may switch to 'FALSE' within the subroutine. At which point I was hoping that the subroutine would no longer be called. Have I made an obvious error in my assumptions?main::look_through_file() called too early to check prototype at recei +ve_annotations_B.pl line 47.
|
---|
Back to
Seekers of Perl Wisdom