on-internet
← Community

Is there a notation for array literals in gawk?

Stack Overflow ·

As gawk knows for (var in array) statement, I'm wondering whether I can write down array as a literal, avoiding to create an array first. I mean: In Perl one can write foreach (1, 2, 3) statement ((1, 2, 3) being converted to an array/list). Is there something similar in gawk?

Comments

Sign in or sign up to comment and upvote.

No comments yet.