Skip to content

perlop: Add here-doc examples #23253

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

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from

Conversation

khwilliamson
Copy link
Contributor

Fixes #20886

  • This set of changes does not require a perldelta entry.

And the text goes on.
EOT

my $person = 'John';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line meant to precede the here-doc declaration (to be a consistent example with the others).

HELLO, $PERSON!
AND THE TEXT GOES ON.

You can do fancy things like call a function with the here-document
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested phrasing: "like use the here-document as an argument to a function."

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though this is maybe out of place since the preceding examples already do this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit of grammatical pedantry here: s/like use/such as use/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[doc] perlop: add additional simpler example of using "<<" with "()"
3 participants