in reply to Using an hash ref to match files with directories

Not exactly clear in your problem definition, but here are a few starting points:

     Potentia vobiscum ! (Si hoc legere scis nimium eruditionis habes)

  • Comment on Re: Using an hash ref to match files with directories

Replies are listed 'Best First'.
Re^2: Using an hash ref to match files with directories
by lomSpace (Scribe) on Aug 10, 2009 at 18:43 UTC
    Hi NetWallah!
    I meant "seq_user_base". The source and target directories are:
    $root and the perl system call immediately following it.
      Unfortunately, your telepathic transmissions have a very poor signal-to-noise ratio, and even with reception tuned to the highest sensitivity, I am regrettably unable to decode them.

      Please describe your problem better, and also let us know the results of following the suggestions you have received.

           Potentia vobiscum ! (Si hoc legere scis nimium eruditionis habes)

        NetWallah,
        I need to copy files from one dir to another. The directories are on two
        separate machines across a file share. The files names start with initials
        followed by an underscore, then some other characters. I need to put
        these files into their respective customer dir.

        The customer dir name is the first and last name of the
        customer. Example: Michael Jackson. So, in order to copy
        a file/s that belong to Michael Jackson I need to match
        his initials with his name. That is where the %sequser
        hash comes in. It creates a mapping between the initials and name.

        My idea is to match the initials of the customer, the values in the hash,
        with the initials at the beginning of the file. Then I will know which user
        dir to copy the file.

        I hope that I have significantly decreased the signal-to-noise ratio.

        LomSpace