in reply to Reading through a file and checking for a specific string

The code you posted doesn't compile because you are missing some semicolons. Please update your post with your actual code.
# Grab files from archive directory with glob function @files = "/export/home/date_file*.txt";
You are not using glob here. @files is an array with one element: /export/home/date_file*.txt. Prove this to yourself (Tip #4 from the Basic debugging checklist).

Replies are listed 'Best First'.
Re^2: Reading through a file and checking for a specific string
by vihar (Acolyte) on Aug 19, 2013 at 20:16 UTC
    Sorry about that. There were a couple lines I added manually while posting this question. That's why.