- or download this
my $out='';
for (0..1000)
...
$out .= "$_"." bottles of beer on the wall\n";
}
print $out;
- or download this
for (0..1000)
{
print "$_"," bottles of beer on the wall\n";
}
- or download this
package Print;
require Exporter;
...
print $sout;
}
1;
- or download this
use Print qw (Print);
for (0..1000)
{
Print "$_"," bottles of beer on the wall\n";
}