Hi there,
Im building a small psub procedure to do maths.
Now its a very simple procedure however im getting errors i cant explain:
Heres the code:
my $barone = 10;
my $bartwo = 5;
my $mathage = maths($barone, $bartwo);
line 269 Sub maths{
line 270 ($betone, $bettwo);
line 271 $mather = $betone / $bettwo;
line 272 return $mather;
line 273 }
i get this error:
syntax error at C:\Documents and Settings\Lee Nash\Desktop\GAF Projects\Betting\Perl\betfred.pl line 271, near "$mather "
syntax error at C:\Documents and Settings\Lee Nash\Desktop\GAF Projects\Betting\Perl\betfred.pl line 273, near "}"
Execution of C:\Documents and Settings\Lee Nash\Desktop\GAF Projects\Betting\Perl\betfred.pl aborted due to compilation errors.
Can anyone help me on this?
Regards
Nash
Im building a small psub procedure to do maths.
Now its a very simple procedure however im getting errors i cant explain:
Heres the code:
my $barone = 10;
my $bartwo = 5;
my $mathage = maths($barone, $bartwo);
line 269 Sub maths{
line 270 ($betone, $bettwo);
line 271 $mather = $betone / $bettwo;
line 272 return $mather;
line 273 }
i get this error:
syntax error at C:\Documents and Settings\Lee Nash\Desktop\GAF Projects\Betting\Perl\betfred.pl line 271, near "$mather "
syntax error at C:\Documents and Settings\Lee Nash\Desktop\GAF Projects\Betting\Perl\betfred.pl line 273, near "}"
Execution of C:\Documents and Settings\Lee Nash\Desktop\GAF Projects\Betting\Perl\betfred.pl aborted due to compilation errors.
Can anyone help me on this?
Regards
Nash