orokro / Classetta

Classetta.com Multi-language class generator
0 stars 0 forks source link

Perl extra code samples: foreach example does not need print; also for/foreach can both be used for a foreach #13

Open medthehatta opened 9 years ago

medthehatta commented 9 years ago

The print looks weird because it has a newline in it (instead of printing \n into the string, which would have been idiomatic). But when looking to see how the other languages did the newline, I found that they don't even print.

Consider dropping the print and replacing with # ....