in reply to Re3: Code rot?
in thread Code rot?
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.#!/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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re5: Code rot?
by dragonchild (Archbishop) on Sep 23, 2003 at 01:05 UTC | |
|
Re: Re: Re3: Code rot?
by Beechbone (Friar) on Sep 23, 2003 at 11:13 UTC | |
by aarestad (Sexton) on Sep 23, 2003 at 13:01 UTC | |
by Beechbone (Friar) on Sep 24, 2003 at 15:03 UTC | |
by aarestad (Sexton) on Sep 23, 2003 at 18:27 UTC |