in reply to trouble with glob
The problem is that each time you do this
-e <"$INTERIORNAME"*.pdf>
it returns a different filename and only a single filename. You need to assign that glob to an array and then grep for the pdf extension with a regex.
By the way according to the 3rd edition of Programming Perl from 2000 this is referred to as the old way to do it. They recommend something like this:
@files = glob("*.pdf");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: trouble with glob
by kurt2439 (Sexton) on Dec 03, 2010 at 19:36 UTC | |
by Gulliver (Monk) on Dec 03, 2010 at 22:02 UTC | |
by kurt2439 (Sexton) on Dec 03, 2010 at 23:05 UTC | |
by Anonymous Monk on Dec 03, 2010 at 23:01 UTC | |
|
Re^2: trouble with glob
by Gulliver (Monk) on Dec 03, 2010 at 15:10 UTC |