FWIW, here's the whole beginning of my script:
#!/usr/bin/perl -w use warnings; use CGI qw(:standard *table); # Location of screen/field description file $screenflddescpath = "descriptions.txt"; open SCREENFLDDESC, $screenflddescpath or die "cannot find screen description file: $!"; while (<SCREENFLDDESC>) { chomp; ($key, $desc) = split /,/; $screenflddesc{$key} = $desc; } close SCREENFLDDESC; # Location of index file we will write results to $indexfile = ">screenindex.html"; open INDEX, $indexfile or die "cannot open index for writing: $!"; # Location of master GUI file # $guipath = "Master.gui"; $guipath = "Master.gui.test"; open GUIFILE, $guipath or die "cannot find Master.gui: $!"; # Start our index file print INDEX start_html("GUI Map Index"), "\n"; print INDEX h1("GUI Map Index"), "\n"; print INDEX "Click on a screen name below to go to its description pag +e", br, "\n"; print INDEX hr, "\n"; # Flag to let us know if we're inside a description block $desc = 0; # Current file name $currfile = ""; while (<GUIFILE>) { chomp; # print "Line: $_\n"; # Outside description block with no ".": Screen name # (or quoted name without following ".") # (Regex was originally /^([^.]+):$/) if ($desc != 0 and /^(\w+):$/) { # this is where the warning is pr +inted print "Screen name: $1\n"; # etc...
There's nothing fancy going on here. Regexes have not changed between 5.6.1 and 5.8.0. I'm not doing anything to $_ except a chomp. I ran the line you had above, and reported that the syntax is OK after printing the parsed version of my script (which didn't change the script noticeably). Does anybody know if Perl has somehow been broken on the new version of Cygwin? edit: Of course, I mean that the regex functions I'm using have not changed btwn 5.6.1 and 5.8.0 - I'm sure there have been other unrelated changes.

In reply to Re: Re3: Code rot? by aarestad
in thread Code rot? by aarestad

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.