Click here to get back home

open a file generated dynamically

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
open a file generated dynamically Ela 03-16-2008
Posted by Ela on March 16, 2008, 6:57 am
Please log in for more thread options
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?



Posted by Jürgen Exner on March 16, 2008, 7:51 am
Please log in for more thread options
>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

Similar ThreadsPosted
Reloading perl file dynamically March 31, 2006, 4:50 am
How to read and write a file without open file twice? Thanks in advance. September 25, 2007, 2:31 pm
Open file, print into file, what variable is used? December 16, 2004, 2:28 am
how to open this file November 15, 2005, 7:57 am
Is it possible to open a file at a second ISP? December 6, 2005, 4:55 pm
use of CSS in CGI generated docs, Impossible ? November 14, 2005, 12:55 pm
FAQ 5.19: Why can't I just open(FH, ">file.lock")? December 13, 2004, 12:03 pm
FAQ 8.43: How do I open a file without blocking? October 28, 2004, 5:03 pm
cannot open and write file January 21, 2005, 12:04 am
cannot open and write file January 21, 2005, 12:08 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap