it should not matter if you put $yr or ${yr}.
Maybe not, but it is still a good practice to get into, especially when using variables mixed in with other characters where the variable does not have whitespace on both sides. But, considering that he is actually getting "-$yr-" (which is the first variable) tells me that the script is not recognizing those "strings" as variables, at all, which the braces can help with.
Edit: If it were that the variables were defined wrong, he would probably wind up with "Report---".
Last edited by masijade; Oct 28th, 2007 at 8:38 am.
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
Offline 4,043 posts
since Feb 2006