in reply to Where did I go wrong?

i don't really know how to configure this post..so it's kind of messy
Use code tags around your code, as described in Writeup Formatting Tips
When I run it, it says Line 7 is a possible typo
Please show the exact error message you get when you run it.

Replies are listed 'Best First'.
Re^2: Where did I go wrong?
by sjlo (Initiate) on Nov 13, 2007 at 22:27 UTC
    i fixed it now...I didn't know about the /code tags..heres the error message.. Name "main::filename" used only once: possible typo at C:\users\xxx\desktop\perl\script.pl line 7 use of uninitalized value in concatenation <.> or string at C:\users\xxx\desktop\perl\script.pl can't open : no such file or directory at c:\users\xxx\desktop\perl\script.pl
      /tmp/blah.txt doesn't exist.