Catriona Wordsworth wrote:

trying to get the following code to print each line where relevant....
> but it only prints the first statement "yes its one!"  even if the
> $variable is "5"....

Are you sure that your $variable is really what you think it is? Maybe some other part of your code is changing it? Insert:

print "variable is $variable\n";

just before the "if." Do you have:

  use strict;
  use warnings;

in the beginning of your program?

-zsdc.


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to