
miller
User
Jun 1, 2011, 2:40 PM
Views: 6776
|
|
Re: [shafathperl2011] Perl Arithmatic
|
|
|
Add use strict; and use warnings; do the beginning of every script and declare your variables. Also, don't forget to use a semicolon to end a statement. That will change your code to the following:
use strict; use warnings; my $var1 = 100; my $var2 = "information"; print $var1+$var2-20; - M
(This post was edited by miller on Jun 1, 2011, 2:44 PM)
|