Re: Expression Parsing Help Needed

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Theresa schreef:

Quoted text here. Click to load it

Both "\w+" in the code below are probably better written as

  use strict;
  use warnings;

  while ( <DATA> ) {
      m~^ACCT \w+-P[14] (.*) - \w+ \S+$~
        and print $1, "\n";

ACCT Gold-P4 Mainframe - Germany Europe/Middle
ACCT Gold-P1 Unix-AIX-Linux - France Europe/Middle

Affijn, Ruud

"Gewoon is een tijger."

Site Timeline