Print the contents of %ENV, and you'll see exactly what they were talking about. It contains all of your environment variables for whatever shell you're running the script in. Very useful to see what's available to your perl program.
OK. Sorry for being a little slow. I finally had a few minutes to play around with this. This is definitely a better way to do it. Thanks for the help.