in reply to Semicolon seems to be missing?

print FH "\nTotal $thit $tmiss $twrong \

You never seem to close that quote (ie missing second ").

Replies are listed 'Best First'.
Re^2: Semicolon seems to be missing?
by kennethk (Abbot) on Apr 15, 2011 at 15:06 UTC
    To add to moritz's insight, if one has a long block of text like that, a here-doc can yield cleaner-looking code - see Quote and Quote like Operators in perlop.

    print FH <<EOT; Total $thit $tmiss $twrong \ NoWx @no_wx \ Rain @rain \ RaSH @rain_sh \ Driz @driz \ Snow @snow \ SnSH @snow_sh \ IceP @ip \ FzRa @zr \ FzDr @zd \ Thun @ts \ Fog @fog \ FzFg @zfog \ IceF @ifog \ Haze @haze \ Blow @blow \ Smok @smoke \ Volc @va \ EOT $tmiss=0;; $thit=0; $twrong=0; @east=(0,0,0);@cent=(0,0,0);@sout=(0,0,0);@west=(0,0,0);
Re^2: Semicolon seems to be missing?
by Anonymous Monk on Apr 15, 2011 at 15:10 UTC

    When I copy and pasted the code, I forgot one line of code. I do close the quote with:
    BloS @bs\n";

    That line follows the Volc @va \ line

      As BrowserUk points out, the code you have posted does not contain the text "$twron". Combined with this modification, which removes the semi-colon issue, your posted code does not emit any of the posted errors. We can't help you debug if we can't replicate your issues. See How do I post a question effectively?.