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. Advertisements

  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. Advertisements

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,389
    Chris Jones
    Jun 25, 2003
  2. Chris Jones

    Dynamically generated png images

    Chris Jones, Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    735
    Kevin Spencer
    Jun 27, 2003
  3. Rick Spiewak
    Replies:
    5
    Views:
    1,055
    Lewis Wang [MSFT]
    Aug 1, 2003
  4. Bruce W...1
    Replies:
    4
    Views:
    648
  5. Matjaz Zalar

    Dynamically generated page

    Matjaz Zalar, Nov 25, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    730
    S. Justin Gengo
    Dec 1, 2003
  6. Replies:
    2
    Views:
    383
    Twisted
    Aug 20, 2007
  7. Schüle Daniel

    File::open and File.open

    Schüle Daniel, Oct 23, 2006, in forum: Ruby
    Replies:
    4
    Views:
    455
    Rick DeNatale
    Oct 24, 2006
  8. eniacpx
    Replies:
    0
    Views:
    193
    eniacpx
    Nov 12, 2006
Loading...