RE: Urgent Help with functions

2005-05-10 Thread Larsen, Errin M HMMA/IT
-Original Message- From: Madhur Kashyap [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 11:34 AM To: beginners@perl.org Subject: Urgent Help with functions Can someone help me out with this simple code? It gives an error saying: Illegal division by zero at test.pl

Re: Urgent Help with functions

2005-05-10 Thread Jay Savage
On 5/10/05, Larsen, Errin M HMMA/IT [EMAIL PROTECTED] wrote: -Original Message- From: Madhur Kashyap [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 11:34 AM To: beginners@perl.org Subject: Urgent Help with functions Can someone help me out with this simple code? It

Re: Urgent Help with functions

2005-05-10 Thread Paul Johnson
On Tue, May 10, 2005 at 10:03:57PM +0530, Madhur Kashyap wrote: Can someone help me out with this simple code? It gives an error saying: Illegal division by zero at test.pl line 4. Exit 255 Code: - #!/usr/local/bin/perl sub test { =09my

RE: Urgent Help with functions

2005-05-10 Thread Christian, Ed
-Original Message- From: Madhur Kashyap [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 12:34 PM To: beginners@perl.org Subject: Urgent Help with functions Can someone help me out with this simple code? It gives an error saying: Illegal division by zero at test.pl line 4. Exit

Re: Urgent Help with functions

2005-05-10 Thread Madhur Kashyap
Thanks for the help Lessons learned as a beginner: 1) Never write codes when you are sleepy. 2) Always use strict/warnings pragma, that will be extremely helpful incase you can't obey previous rule. Hope thats important for every beginner. On 5/11/05, Paul Johnson [EMAIL PROTECTED] wrote: