in reply to Another Dumb Noob Question - Arrays & Scalar Variables

jdlev:

Thanks for making the effort of making your code clear enough to read. Unfortunately, you worked too hard to do it. You could've just put <c> before your code and </c> after it, and it would all be formatted nicely. Just so you know...

Anyway, as ikegami mentions, you didn't assign anything to $fdr. Since a variable is undefined until you assign something to it, then you need only assign the proper value to it before you use it. So perl is just letting you know that you're reading (and presumably using) a value that you haven't defined yet.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Another Dumb Noob Question - Arrays & Scalar Variables