open a file generated dynamically

E

Ela

a file named "summary.####" is generated dynamically where #### is a number
with unknown digits (i.e. maybe 1 to 9), how can I ask perl to open this
file for further processing?
 
J

Jürgen Exner

Ela said:
a file named "summary.####" is generated dynamically where #### is a number
with unknown digits (i.e. maybe 1 to 9), how can I ask perl to open this
file for further processing?

You will have to determine the actual file name first, e.g. by using glob()
or opendir() and readdir() and then isolating the desired name from the
list.

jue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top