Re: I'm learning the basics of functions. Help!

2002-11-01 Thread Jenda Krynicky
From: Gajo Csaba <[EMAIL PROTECTED]> > I'm trying to write a simple Hanoi tower program. Here is > the procedure I've wrote (with line numbers): > > # hanoj (src,hlp,tgt,num) > # src,tgt,hlp,n-1 src,hlp,tgt,1 hlp,src,tgt,n-1 > > 3: sub hanoj > 4: { > 5: if ($_[3] <= 1) > 6: { > 7:pri

I'm learning the basics of functions. Help!

2002-11-01 Thread Gajo Csaba
Hi, I'm trying to write a simple Hanoi tower program. Here is the procedure I've wrote (with line numbers): # hanoj (src,hlp,tgt,num) # src,tgt,hlp,n-1 src,hlp,tgt,1 hlp,src,tgt,n-1 3: sub hanoj 4: { 5: if ($_[3] <= 1) 6: { 7:print "From $_[0] we put on $_[2] with the help of $_ [1]