MistaMuShu has asked for the wisdom of the Perl Monks concerning the following question:
I realize I must be doing something really stupid when I try to match the foldername. But I can't figure out why the expression after \d{6} does not work.... $folder = shift(@dir); #dir is a listing of folders $folder =~ /(\d{6}.?\d{2}?\w?)/; open FILE, ">./$folder/$1_vml.htm"; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular Expression Question
by Roy Johnson (Monsignor) on Jul 21, 2004 at 23:41 UTC | |
by MistaMuShu (Beadle) on Jul 22, 2004 at 19:02 UTC | |
|
Re: Regular Expression Question
by swkronenfeld (Hermit) on Jul 21, 2004 at 22:58 UTC | |
by MistaMuShu (Beadle) on Jul 22, 2004 at 19:00 UTC |