in reply to Input files <>

What does "will not work" mean? What output are you expecting?

It "works" fine for me on Windows 7 64-bit / Strawberry 64-bit 5.12.3. "Works" as in does what I expect it to do - maybe not what you want?

VinsWorldcom@C:\Users\VinsWorldcom\tmp> ver Microsoft Windows [Version 6.1.7601] VinsWorldcom@C:\Users\VinsWorldcom\tmp> perl -v This is perl 5, version 12, subversion 3 (v5.12.3) built for MSWin32-x +64-multi-t hread [...] VinsWorldcom@C:\Users\VinsWorldcom\tmp> test.pl help me understand what you want ^Z want

Replies are listed 'Best First'.
Re^2: Input files <>
by ostra (Novice) on Apr 03, 2012 at 15:59 UTC
    Thank you VinsWorld, I expected to see the contents of @raw. Which sould be two sentences. The file.txt that was the source input contained two sentences. On the command line I type in the pl script blank space and file.txt. I hit return.The curser moves to next line on command screen and stays there forever. ostra
      As far as I can deduce from your program (which isn't inside of <code> tags, so very hard to read), @raw will be assigned the current line. @raw will never contain more than one line. Finally, when all input is seen, @raw is printed. And hence, will print the final line of the input.
        Thank you for your reply. But I don't see the final line-i don't see anything.

      Can you please show us the exact command you are using to invoke the script?


      Dave

        Dave thank you for getting back to me. The command is written as follows: namelist.pl names.txt Ostra