<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>soh3914</author_name>
  <author_url>https://blog.hatena.ne.jp/soh3914/</author_url>
  <blog_title>yukke::note</blog_title>
  <blog_url>https://yukke.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>DNAは、相補的塩基対形成という性質があって、AとG、TとCとしか水素結合を形成することは出来ない。つまり、ATCCという塩基の相方の塩基は必ずTCGGとなる。これを出来るだけ短く書きたい。 がんばったら、 で5行で、実質の処理をしているのは1行になる。うーん、ループ使わずに一行にしたいがどうやればよいものか。 $rev .= $_ =~ /[aA]/ ? 't' : $_ =~ /[cC]/ ? 'g' : $_ =~ /[gG]/ ? 'a' : $_ =~ /[tT]/ ? 'c' : '' for split //, my $s = shift; で、というか、splitの2個目の引数…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyukke.hateblo.jp%2Fentry%2F2013%2F08%2F21%2F190633&quot; title=&quot;Perlで相補鎖を返す関数を短く書く - yukke::note&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>2013-08-21 19:06:33</published>
  <title>Perlで相補鎖を返す関数を短く書く</title>
  <type>rich</type>
  <url>https://yukke.hateblo.jp/entry/2013/08/21/190633</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
