print is a list operator and doesn't parse the way you're expecting it to.
perl -MO=Deparse,-p,-q -e 'my $i=0;for (1..456) {print (($i%100)?"":" +\n\t"),(($i%10)?".":(int(($i%100)/10)));$i++;};print "\n";' (my $i = 0); foreach $_ (1 .. 456) { (print((($i % 100) ? '' : "\n\t")), (($i % 10) ? '???' : int((($i +% 100) / 10)))); (++$i); } print("\n");
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: print list, comma not working?
by Fletch
in thread print list, comma not working?
by fzellinger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |