The chomp which is supposed to remove the newline character doesn´t do anything. I read somewhere that you have to dereference the variable first, but $line should be dereferenced by dereferencing the array..? What am I doing wrong? Thanks, Michaelforeach my $line (@$array) { chomp $line; print "$line**"; my @array = split(/\t/,$line); ...}
In reply to chomp - reference by michaelp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |