嗨, 大家好: 网站在新年后正式开通,欢迎大家加入我们,共同维护一个良好氛围的中国技术社区。 欢迎举报不良帖子,欢迎提供建议。
我们的QQ群:136102234,欢迎进群找答案,里边会有很多资深的大师们。 point overflow

来源segmentfault.com

没有读懂加粗的这句话在说什么,是说BEGIN{aaa}{bbb}和BEGIN{aaabbb}是等价的意思吗?

BEGIN and END are two special kinds of patterns which are not tested against the input. The action parts of all BEGIN patterns are merged as if all the statements had been written in a single BEGIN block. They are executed before any of the input is read.

asked 2016-03-18 15:36:42

jkant's gravatar image

jkant ♦♦
11134138139
accept rate: 3%


BEGIN{aaa} BEGIN{bbb}等价于BEGIN{aaa;bbb}

link

answered 2016-03-18 15:36:53

jkant's gravatar image

jkant ♦♦
11134138139
accept rate: 3%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: 2016-03-18 15:36:42

Seen: 797 times

Last updated: 2016-03-18 15:36:53

Related questions