Newbie Errors - Uninitialized Valuesby Anonymous Monk
|on May 30, 2001 at 06:51 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I've just started to learning perl and decided to write up a script to add vectors for my silly Physics class. I've gotten maybe halfway through it, and I am confounded by errors.
My program opens a file 'vectors' which contains 4 numbers, which are then assigned to variables using split(); The errors I am getting involve the use of unitialized variables so I think my use of split() is to blame.
Here's the script:
Here's the 'vectors' file I refer to:
Thanks for any help.