Logo

Programming-Idioms

Declare a new string s and initialize it with the literal value "ネコ" (which means "cat" in japanese)
Implementation
Perl

Implementation edit is for fixing errors and enhancing with metadata. Please do not replace the code below with a different implementation.

Instead of changing the code of the snippet, consider creating another Perl implementation.

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating material.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
s := "ネコ"
String s = "ネコ";
s = "ネコ";
$s = "ネコ";
let s = "ネコ";
string s = "ネコ";
var s = "ネコ";
s = "ネコ"
(def s "ネコ")
s = "ネコ"
s = "ネコ"
s = "ネコ"
S = unicode:characters_to_binary("ネコ"),
{$codepage utf8}
s := "ネコ";
s = 'ネコ'
#include <string>
std::string s = u8"ネコ";
val s = "ネコ"
string s = "ネコ";
  use, intrinsic :: iso_fortran_env
  implicit none
  integer, parameter :: u = selected_char_kind('ISO_10646')

  character(kind=u,len=2) :: cat
  cat = u_"ネコ"
const char * s = "ネコ";
NSString *s=@"ネコ";
Dim s As String = "ネコ"
(defvar *s* "ネコ")