in reply to Reading a file into an array

I don't know how you used foreach and chomp to get bupkis - (unless you had "bupkis" in the file ;-)

You could do this:

@ssg=<SSG>; chomp @ssg;
You could also use File::Slurp, and chomp the return from that...