M monica k New member Apr 8, 2011 #1 The code I need to fix is: #test.lp #!/usr/bin/pearl $c="*"; for($b=0;$b>5;$c+) { for($a=1;$a<6;$a++) { print '$c' } Print "\n"; }
The code I need to fix is: #test.lp #!/usr/bin/pearl $c="*"; for($b=0;$b>5;$c+) { for($a=1;$a<6;$a++) { print '$c' } Print "\n"; }
M martinthurn New member Apr 8, 2011 #2 You need to tell us what it's supposed to do!?! Put this at the top of your program, fix it by yourself, then come back and ask again use strict; use warnings;
You need to tell us what it's supposed to do!?! Put this at the top of your program, fix it by yourself, then come back and ask again use strict; use warnings;
G Gregg L (JPA) New member Apr 8, 2011 #3 #test.lp #!/usr/bin/pearl <----You spelled perl wrong here! should be #!/usr/bin/perl $c="*"; for($b=0;$b>5;$c+) { for($a=1;$a<6;$a++) { print '$c' } Print "\n"; }
#test.lp #!/usr/bin/pearl <----You spelled perl wrong here! should be #!/usr/bin/perl $c="*"; for($b=0;$b>5;$c+) { for($a=1;$a<6;$a++) { print '$c' } Print "\n"; }