Re: If Statement Nested Regular Exp.

2002-12-19 Thread Jenda Krynicky
From: "Paul Kraus" <[EMAIL PROTECTED]> > Any ideas why this fails. If I remove if /aged/ and just have the if > /Reports ... then everything works ok. > > Code > #!/usr/bin/perl > my @files; > my %age; > push (@files, glob "Aged*"); > push (@files, glob "Receipts*"); > > foreach (@files){ >

RE: If Statement Nested Regular Exp.

2002-12-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Paul, I would say it is your last \s+ which probably should be written \s* which says there may or may not be whitespace after the last number you find. With the plus there must be at least one white space. Wags ;) -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED]] Se