Skip to main content
Module

x/ddc_vim/deps.ts>fn.perleval

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.perleval
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { perleval } = fn;

Evaluate Perl expression {expr} in scalar context and return its result converted to Vim data structures. If value can't be converted, it is returned as a string Perl representation. Note: If you want an array or hash, {expr} must return a reference to it. Example: :echo perleval('[1 .. 4]') [1, 2, 3, 4] Can also be used as a |method|: GetExpr()->perleval() {only available when compiled with the |+perl| feature}

Parameters

denops: Denops
expr: unknown

Returns

Promise<unknown>