in reply to Searching on the Key Field of a Hash

You can create an array of the files no problem, and print the list back to your screen, but when you run the code, stuff happens with the temp files/permissions, but you get nothing on the screen, no error messages, no print.

Those two are contradictory. Please rephrase what you mean, it's probably two separate situations where one has printing and one doesn't but it doesn't read that way.

Also the previous poster was right that you're not creating a hash anywhere. I'd suggest creating it roughly at the same place that you currently "print $figures;".

Does the above code print anything for you, or not?

  • Comment on Re: Searching on the Key Field of a Hash

Replies are listed 'Best First'.
Re^2: Searching on the Key Field of a Hash
by xdbd063 (Friar) on Feb 24, 2006 at 15:23 UTC
    No, the code doesn't print anything for me. When I execute it, it brings me right back to the prompt. The temporary files are created and the permissions on the origional files are changed.

    I'm searching the file for the following lines of code:

    <IMG SRC="/CSS/tpgvoli/G-0/7/G-07932.00970601.gif">
    \nAssemble The No. 3 Bearing (Rear) Seal Ring Holder Assembly\nR Figure 1001a

    I want to capture the first line, the <IMG line, and the third line,
    the FIGURE line, and throw out the second line of text. Frankly, I
    have no idea what I'm dong at this point, I'm so lost.
Re^2: Searching on the Key Field of a Hash
by xdbd063 (Friar) on Feb 24, 2006 at 15:30 UTC
    No, the code doesn't print anything for me. When I execute it, it brings me right back to the prompt.
    The temporary files are created and the permissions on the origional files are changed.

    I'm searching the file for the following lines of code:

    <IMG SRC="/CSS/tpgvoli/G-0/7/G-07932.00970601.gif">
    \nAssemble The No. 3 Bearing (Rear) Seal Ring Holder Assembly\n
    R Figure 1001a

    I want to capture the first line, the <IMG line, and the third line,
    the FIGURE line, and throw out the second line of text. The only part of the first line that is always the
    same is the <IMG SRC and the ending BR> There is not always a beginning R to start the third line and
    not always an alpha after the numeric. Frankly, I have no idea what I'm dong at this point, I'm so lost.