Re: regular expression syntax

2006-10-21 Thread Dr.Ruud
Kathryn Bushley schreef: > #!/usr/bin/perl -w > use warnings; You have both -w and lexical warnings. Read `perldoc perllexwarn` or http://perldoc.perl.org/perllexwarn.html Now first change your two lines to these three: #!/usr/bin/perl use warnings ; use strict ; and see what extra help

Re: regular expression syntax

2006-10-20 Thread Tom Phoenix
On 10/20/06, Kathryn Bushley <[EMAIL PROTECTED]> wrote: I'm trying to get this program to work and it works up until the last two lines (substitution) which gives a syntax error...any idea what might be the problem? What *is* the error message? $line=~ s/(.*)$code([/D])/$1$id_global{$code