my @LINES; while (<DATA>) { chomp; push @LINES, $_; }
...is equivalent to this:
chomp (my @lines = <DATA>);
Who knows how that works, but it does. It's a perl idiom you need to know.
As for this:my $split; for (@LINES) { my @row = split ('&', $_);
The only variable name you could think of, $split, is the same name as the perl function split() ? Don't ever do that. If you can't think up 10 unique variable names, you cannot be a computer programmer. Also, your variable names need to be descriptive. "Hey, Joe! I've got an array ref named '$split'. Guess what's in the array? Joe: Gold coins?"
Avoid writing $_ in your code. I suggest you read "Learning Perl 6th ed.". You need to learn modern perl.
In reply to Re: Using HTML Template to fill a 2-dimensional table
by 7stud
in thread Using HTML Template to fill a 2-dimensional table
by jms53
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |