<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinmai_papa</author_name>
  <author_url>https://blog.hatena.ne.jp/shinmai_papa/</author_url>
  <blog_title>適材適所</blog_title>
  <blog_url>https://www.tekizai.net/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>ヒア文字とは ヒア文字の罠 前の@&quot;も値に連続させてしまうとダメ 最後に PowerShellのヒア文字、便利ですね。 コードなんかを変数に格納する際など、重宝します。 そんなヒア文字ですが、注意すべき罠があります。 （自分で勝手にはまっているだけ） この記事では、ヒア文字の恐ろしい罠について紹介しようと思います。 (繰り返しですが、自分ではまっているだけ) ヒア文字とは 複数行にまたがるような値を変数に格納したい場合に使用するのがヒア文字です。 $変数 = @&quot; 任意の値 任意の値 任意の値 任意の値 &quot;@ $varという変数にヒア文字を使って値を格納してみます。 $var = @&quot; tes…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.tekizai.net%2Fentry%2Fpowershell_herestring_1&quot; title=&quot;【PowerShell】ヒア文字の罠に勝手にはまる - 適材適所&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/shinmai_papa/20210127/20210127142223.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-27 07:30:00</published>
  <title>【PowerShell】ヒア文字の罠に勝手にはまる</title>
  <type>rich</type>
  <url>https://www.tekizai.net/entry/powershell_herestring_1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
