There were cenrtanly a dozen other ways to get the line count, but for what was being done this was the most strait forward, without doing double work.#actual data came over the network with inconstant line ends. my $text = "some\r\nmulti-line\ntext"; my $line_count = $text =~ s/\r?\n/\n/g;
In reply to Re^4: Stupid mistakes I repeatedly make
by Ven'Tatsu
in thread Stupid mistakes I repeatedly make
by brian_d_foy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |