Implementation
Perl

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

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

Other implementations
n := len(x)
int n = x.size();
int n = x.length;
size_t n = x.size();
n := length(x);
auto n = x.length;
n = len(x)
var n = x.length;
using System.Collections.Generic;
int n = x.Count;
n = length x
(setf n (length x))
n = x.length
let n = x.len();

n = Enum.count(x)
with Ada.Containers.Vectors;
use Ada.Containers;
N : Count_Type := X.Length;
$n = count($x);
N = length(X).
local n = #x
import std.range.primitives;
n = walkLength(x);
size_t n = sizeof(x)/sizeof(*x);
int n = x.Length;
(define n (length x))
val n = x.size
int n = x.length;
(def n (count x))