Ley, Chung wrote:
Hi,

Hello,

I have a program that will take in a string that will resolve to a path
where the output is going to store.

The path can includes "variables" in this format "%<VariableName>%".
The acceptable variableNames that the program will support are fixed to
a list such as "Person", "Class", "Dept".  This list may grow in the
future; but for now it is fixed.

If you know what the "variable" names will be in advance then you could use a regular expression like /%(?:Person|Class|Dept)%/.


John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to