I need to fix this perl code.?

monica k

New member
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";
}
 
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;
 
#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";
}
 
Back
Top