On Monday 04 June 2001 09:33, you wrote:
> I have yet to get a sub to work correctly. Am I doing something
> drastically wrong? Thanks everyone!
Problem is that $getnumber refers to _scalar variable_ with that name. If you
want to call the function, use getnumber() or &getnumber;
Explanation: you are assigning value of $getnumber variable (which does not
exist and thus is undefined) to both $x and $y.
It's strongly recomended to use flag '-w' and write 'use strict;' on the
beginning of every program; if you were using it, you would find the problem
by yourself :)
Ondrej
--
Ondrej Par
Internet Securities
Software Engineer
e-mail: [EMAIL PROTECTED]
Phone: +420 2 222 543 45 ext. 112