in reply to Re: Help constructing proper regex to extract values from filenames and concurrently opening those same files to access records
in thread Help constructing proper regex to extract values from filenames and concurrently opening those same files to access records
Error msg:# do extra check that $school is acceptable $school //= 'null'; # regex gives undef if not found
Search pattern not terminated
I commented that out and it run, although it had these errors:
match: /home/test/abc/.date_run_dir type: abc Use of uninitialized value in concatenation (.) or string at ./test7.p +l line 31, <$_[...]> line 1. school: match: /home/test/def/.date_run_dir type: def Use of uninitialized value in concatenation (.) or string at ./test7.p +l line 31, <$_[...]> line 2. school:
Also would you pls show me to extract values from the files I match? Can I do this in the same pass that I peform the regex? Example values from file (.date_run_dir, etc)
$ cat .date_run_dir .date_file_sent.* /project/school/data/feed_abc_2010120816.ext3 mail_abc.dat.2010120816.ext3 mail_abc.dat.2010120816.ext3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Help constructing proper regex to extract values from filenames and concurrently opening those same files to access records
by Anonymous Monk on Dec 11, 2010 at 22:10 UTC | |
by JaeDre619 (Acolyte) on Dec 12, 2010 at 00:07 UTC |