How To Count Lines In A String Variable Using Perl
erics, Posted July 20th, 2021 at 12:56:33pm
|
1 |
my $count = () = $string =~ /\n/g; |
|
1 |
my $count = () = $string =~ /\n/g; |
Categories: How-To's, Technology Tags: Count, howto, Newline, perl, String, tips, Var, Variable
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | ||
Copyright © 2005-2026 Eric Michael Stone | Random Thoughts, Whims and Fancies…. Powered by WordPress
Leave Your Comment
All fields marked with "*" are required.