how to read inputs from file for perl script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nithinpes
    Recognized Expert Contributor
    • Dec 2007
    • 410

    #16
    Originally posted by senthilkumars
    I got OP by removing " " in above statement. since there is no space in my
    file path no need of putting " ".
    Senthilkumar,
    I do agree with Kevin. Shelling out to a Perl script may be unnecessary in your scenario.
    You can simplify it by including the while loop inside your original script and opening one file at a time, if that meets the objective. Another way is to convert your script to a subroutine and call the sub-routine for each iteration of while loop (each file).
    You would have met your objective. But this way, script would be more efficient :)

    Comment

    Working...