Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simplify code snippet #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
choosen wants to merge 2 commits into learnbyexample:master from choosen:patch-1
Closed

Simplify code snippet #1

choosen wants to merge 2 commits into learnbyexample:master from choosen:patch-1

Conversation

Copy link

@choosen choosen commented Oct 14, 2021

simplify code by skipping begin with print as a result.

Thanks for great resources !

Copy link
Owner

Context is important. I'm explaining how the output record separator affects the print method, so I'm using it explicitly instead of using -p option.

Regarding use of BEGIN, imo that is better than assigning $\ for every line of input.

choosen reacted with thumbs up emoji

Copy link
Author

choosen commented Oct 16, 2021

@learnbyexample thanks for explaining.
I thought first -e will be fired only once.

learnbyexample reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /