Loading ...
Sorry, an error occurred while loading the content.
 

Re: [parsexs] Toward 'use strict': What's up with $DoSetMagic

Expand Messages
  • arocker@vex.net
    ... Only if somebody, somewhere, is checking to see if it s true, and if so, turning on bits that mess up namespaces.
    Message 1 of 6 , Mar 15, 2010
      > but my main puzzlement is that $DoSetMagic just appears to be a garden
      > variety Perl 5 (global) variable.
      >
      > If, for example, were name $JustAnotherGlobalVariable, there would be
      > little or nothing that was "magickal" about it -- but it would still
      > be causing this weird problem.
      >

      Only if somebody, somewhere, is checking to see if it's true, and if so,
      turning on bits that mess up namespaces.
    • James E Keenan
      ... Thanks, David, that was indeed the problem. I ll make a separate post about the remaining unscoped variables. jimk
      Message 2 of 6 , Mar 15, 2010
        On Mar 14, 2010, at 10:17 PM, David Golden wrote:

        >
        > A lot of variables are being declared as "our" within the PARAGRAPH
        > loop, but used outside it. E.g. declared inside the loop:
        >
        > 860 our $newXS = "newXS";
        > 861 our $proto = "";
        >
        > The "our" needs to be removed on these lines and the variables added
        > to the huge list of global variables at the top of the file.
        >

        Thanks, David, that was indeed the problem. I'll make a separate
        post about the remaining unscoped variables.

        jimk
      Your message has been successfully submitted and would be delivered to recipients shortly.