<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>asakusabashi</author_name>
  <author_url>https://blog.hatena.ne.jp/asakusabashi/</author_url>
  <blog_title>浅草橋クロニクル</blog_title>
  <blog_url>https://asakusabashi.hatenadiary.org/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>通常ライブラリパスは、use libで指定するかと思いますが、環境変数や引数によって読み込むライブラリパスを切り替えたいということがあります。 #!/usr/bin/perl BEGIN { if ($ENV{APL_ENV} eq 'production') { use lib 'production/lib'; } elsif ($ENV{APL_ENV} eq 'test') { use lib 'test/lib'; } else { use lib 'development/lib'; } use XXX; }としても、環境変数APL_ENVによってライブラリパスを切り替えることはで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fasakusabashi.hatenadiary.org%2Fentry%2F20060206%2Fp1&quot; title=&quot;use libと@INC - 浅草橋クロニクル&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-02-06 00:00:00</published>
  <title>use libと@INC</title>
  <type>rich</type>
  <url>https://asakusabashi.hatenadiary.org/entry/20060206/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
