Help for this page

Select Code to Download


  1. or download this
    STATIC void
    S_checkcomma(pTHX_ register char *s, char *name, char *what)
    {
    ...
            }
        }
        # [the S_checkcomma function continues from here with an unrelated
    + syntax check]
    
  2. or download this
    STATIC void
    S_checkcomma(pTHX_ register char *s, char *name, char *what)
    {
        char *w;
    
        if (*s == ' ' && s[1] == '(') {     /* XXX gotta be a better way *
    +/
    
  3. or download this
            if (ckWARN(WARN_SYNTAX)) {
  4. or download this
                int level = 1;
                for (w = s+2; *w && level; w++) {
                    if (*w == '(')
    ...
                    else if (*w == ')')
                        --level;
                }
    
  5. or download this
                if (*w)
                    for (; *w && isSPACE(*w); w++) ;
    
  6. or download this
                if (!*w || !strchr(";|})]oaiuw!=", *w))     /* an advisory hack only... */
  7. or download this
                    Perl_warner(aTHX_ WARN_SYNTAX,
                                "%s (...) interpreted as function",name);
            }
        }
    
  8. or download this
    print (/\)/);      # warning
    print (/./);       # no warning
    print ("hey))");   # no warning
    print ("hey")&&1;  # warning
    print ("hey")||1;  # no warning