open a file generated dynamically

Discussion in 'Perl Misc' started by Ela, Mar 16, 2008.

  1. Ela

    Ela Guest

    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?
     
    Ela, Mar 16, 2008
    #1
    1. Advertising

  2. "Ela" <> wrote:
    >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
     
    Jürgen Exner, Mar 16, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Jones
    Replies:
    0
    Views:
    1,298
    Chris Jones
    Jun 25, 2003
  2. Chris Jones

    Dynamically generated png images

    Chris Jones, Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    558
    Kevin Spencer
    Jun 27, 2003
  3. Rick Spiewak
    Replies:
    5
    Views:
    868
    Lewis Wang [MSFT]
    Aug 1, 2003
  4. Replies:
    2
    Views:
    317
    Twisted
    Aug 20, 2007
  5. eniacpx
    Replies:
    0
    Views:
    156
    eniacpx
    Nov 12, 2006
Loading...

Share This Page